for newline, RawPutChar() is called at least once, so convert loop to do-while

This commit is contained in:
Michael Mikonos 2024-01-30 20:40:37 +08:00
parent 524bddec6c
commit 828b2493a4

View file

@ -47,9 +47,8 @@ See also $LK,"GrUpdateScreen",A="MN:GrUpdateScreen"$().
} }
else if (ch == '\n') else if (ch == '\n')
{ {
RawPutChar(CH_SPACE); do RawPutChar(CH_SPACE);
while (text.raw_col % text.cols) while (text.raw_col % text.cols);
RawPutChar(CH_SPACE);
} }
else if (Bt(char_bmp_displayable, ch)) else if (Bt(char_bmp_displayable, ch))
{ {