From: Tormod Volden Date: Sun, 29 May 2016 11:41:31 +0000 (+0200) Subject: vt.c: Fix off-by-one in clear to end of line escape sequence X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1106d6587f9ebb1b23465649ebe985dd257f74db;p=FUZIX.git vt.c: Fix off-by-one in clear to end of line escape sequence It wouldn't clear the last column on the screen. Signed-off-by: Tormod Volden --- diff --git a/Kernel/vt.c b/Kernel/vt.c index 0dc45f4a..d9301753 100644 --- a/Kernel/vt.c +++ b/Kernel/vt.c @@ -178,12 +178,12 @@ static int escout(unsigned char c) return 0; } if (c == 'J') { - clear_across(cursory, cursorx, VT_RIGHT - cursorx); + clear_across(cursory, cursorx, VT_RIGHT - cursorx + 1); clear_lines(cursory + 1, VT_BOTTOM - cursory); return 0; } if (c == 'K') { - clear_across(cursory, cursorx, VT_RIGHT - cursorx); + clear_across(cursory, cursorx, VT_RIGHT - cursorx + 1); return 0; } if (c == 'Y')