From 2479da7291d15daabafba58bae7ac7b5e988eba9 Mon Sep 17 00:00:00 2001 From: Julian Barathieu Date: Sat, 18 May 2019 19:56:35 +0200 Subject: [PATCH] scrolling bug fix --- kaleid/kernel/io/vga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kaleid/kernel/io/vga.c b/kaleid/kernel/io/vga.c index 40308f9..367f2b4 100644 --- a/kaleid/kernel/io/vga.c +++ b/kaleid/kernel/io/vga.c @@ -90,8 +90,7 @@ void IoScrollUp(void) BLockBuf(BStdOut); uchar *currentLine = BStdOut->wp - BStdOut->lastLF; - assert(currentLine >= BStdOut->buf); - + // Scrollable lines uint scrabble = max(0, (currentLine-BStdOut->buf)/BStdOut->lineLen - BStdOut->nLines + 1); @@ -100,7 +99,6 @@ void IoScrollUp(void) bscroll++; bvgaflusher(BStdOut); - BUnlockBuf(BStdOut); }