Adjusted line break substring breaking (#7789)

Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
hedara90 2025-09-24 20:21:49 +02:00 committed by GitHub
parent 58b9642cb1
commit 27b1a17d09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,10 +36,10 @@ void BreakStringAutomatic(u8 *src, u32 maxWidth, u32 screenLines, u8 fontId, enu
{
if (src[currIndex] == CHAR_PROMPT_CLEAR)
{
u8 replacedChar = src[currIndex + 1];
src[currIndex + 1] = EOS;
u8 replacedChar = src[currIndex];
src[currIndex] = EOS;
BreakSubStringAutomatic(currSrc, maxWidth, screenLines, fontId, toggleScrollPrompt);
src[currIndex + 1] = replacedChar;
src[currIndex] = replacedChar;
currSrc = &src[currIndex + 1];
}
currIndex++;