From 9b51ed0c71878a2e5c2f6372c6de3dd318ad2416 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 6 Aug 2022 01:08:08 +0200 Subject: user/vterm: fix crash on 1920x1080 --- src/user/app/vterm/vterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/vterm/vterm.c') diff --git a/src/user/app/vterm/vterm.c b/src/user/app/vterm/vterm.c index 43180b2..50a7b98 100644 --- a/src/user/app/vterm/vterm.c +++ b/src/user/app/vterm/vterm.c @@ -26,7 +26,7 @@ void in_char(char c) { cursor.x = 0; cursor.y++; } - while (cursor.y * font.h >= fb.height) scroll(); + while ((cursor.y + 1) * font.h >= fb.height) scroll(); } int main(); -- cgit v1.2.3