Compare commits

...

3 commits

Author SHA1 Message Date
Gunch
e34e75626f
Merge pull request #166 from mknos/kdisplay_dowhile
Some checks failed
Build ZealOS ISOs / Build (push) Has been cancelled
convert tab case in RawPutChar() to do-while loop
2024-12-19 23:05:40 -05:00
Michael Mikonos
dba0d17880 revert permission 2024-12-19 10:31:58 +08:00
Michael Mikonos
742b2fad72 tab case in RawPutChar() can also be converted to do-while 2024-12-19 10:30:58 +08:00

View file

@ -35,9 +35,9 @@ See also $LK,"GrUpdateScreen",A="MN:GrUpdateScreen"$().
} }
if (ch == '\t') if (ch == '\t')
{ {
do
RawPutChar(CH_SPACE); RawPutChar(CH_SPACE);
while (text.raw_col & 3) while (text.raw_col & 3);
RawPutChar(CH_SPACE);
} }
else if (ch == CH_BACKSPACE) else if (ch == CH_BACKSPACE)
{ {