Skip to content

Commit

Permalink
fixed last line couldn't be accessed using directionals arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
Namonay committed Jul 20, 2024
1 parent 61ac9aa commit b9152a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/drivers/vga/vga.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b9152a6

Please sign in to comment.