From 1106d6587f9ebb1b23465649ebe985dd257f74db Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sun, 29 May 2016 13:41:31 +0200 Subject: [PATCH] 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 --- Kernel/vt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') -- 2.34.1