summaryrefslogtreecommitdiff
path: root/src/user/app/vterm/vterm.c
diff options
context:
space:
mode:
authordzwdz2022-08-06 01:08:08 +0200
committerdzwdz2022-08-06 01:08:08 +0200
commit9b51ed0c71878a2e5c2f6372c6de3dd318ad2416 (patch)
treeee8c3bbbe2d45c7ebfe34c6c1142620f9ef44f8d /src/user/app/vterm/vterm.c
parent03c6f3cf458c89df17b02557cd232f9cde73ed54 (diff)
user/vterm: fix crash on 1920x1080
Diffstat (limited to 'src/user/app/vterm/vterm.c')
-rw-r--r--src/user/app/vterm/vterm.c2
1 files changed, 1 insertions, 1 deletions
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();