From b9152a6008bb8433cd5054c4a485e2bf7bdf7fa3 Mon Sep 17 00:00:00 2001 From: Namonay Date: Sat, 20 Jul 2024 20:25:21 +0200 Subject: [PATCH] fixed last line couldn't be accessed using directionals arrows --- sources/drivers/vga/vga.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/drivers/vga/vga.zig b/sources/drivers/vga/vga.zig index 071aad8..e79d2a1 100644 --- a/sources/drivers/vga/vga.zig +++ b/sources/drivers/vga/vga.zig @@ -139,7 +139,7 @@ pub fn moveCursor(dir : u8) void vga.y += 1; if (dir == 72 and vga.y == 1) reverseScroll(); - if (dir == 80 and vga.y == vga.height - 1) + if (dir == 80 and vga.y == vga.height) scroll(); updateCursor(); }