From 828b2493a4127f5cc76bdb08ad0232c29ce9000b Mon Sep 17 00:00:00 2001 From: Michael Mikonos Date: Tue, 30 Jan 2024 20:40:37 +0800 Subject: [PATCH 1/2] for newline, RawPutChar() is called at least once, so convert loop to do-while --- src/Kernel/Display.ZC | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Kernel/Display.ZC b/src/Kernel/Display.ZC index f8cadcb9..5c0ce6f7 100755 --- a/src/Kernel/Display.ZC +++ b/src/Kernel/Display.ZC @@ -47,9 +47,8 @@ See also $LK,"GrUpdateScreen",A="MN:GrUpdateScreen"$(). } else if (ch == '\n') { - RawPutChar(CH_SPACE); - while (text.raw_col % text.cols) - RawPutChar(CH_SPACE); + do RawPutChar(CH_SPACE); + while (text.raw_col % text.cols); } else if (Bt(char_bmp_displayable, ch)) { From cf4d34c8b2d3eec8d18b3c097226c018b73f96a5 Mon Sep 17 00:00:00 2001 From: Arsenic Blood <127725014+GutPuncher@users.noreply.github.com> Date: Mon, 11 Mar 2024 02:59:45 -0400 Subject: [PATCH 2/2] Update Display.ZC --- src/Kernel/Display.ZC | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Kernel/Display.ZC b/src/Kernel/Display.ZC index 5c0ce6f7..ef89e85f 100755 --- a/src/Kernel/Display.ZC +++ b/src/Kernel/Display.ZC @@ -47,7 +47,8 @@ See also $LK,"GrUpdateScreen",A="MN:GrUpdateScreen"$(). } else if (ch == '\n') { - do RawPutChar(CH_SPACE); + do + RawPutChar(CH_SPACE); while (text.raw_col % text.cols); } else if (Bt(char_bmp_displayable, ch))