1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

scrolling bug fix

This commit is contained in:
Julian Barathieu 2019-05-18 19:56:35 +02:00
parent 8d23c076eb
commit 2479da7291

View File

@ -90,8 +90,7 @@ void IoScrollUp(void)
BLockBuf(BStdOut); BLockBuf(BStdOut);
uchar *currentLine = BStdOut->wp - BStdOut->lastLF; uchar *currentLine = BStdOut->wp - BStdOut->lastLF;
assert(currentLine >= BStdOut->buf);
// Scrollable lines // Scrollable lines
uint scrabble = max(0, (currentLine-BStdOut->buf)/BStdOut->lineLen uint scrabble = max(0, (currentLine-BStdOut->buf)/BStdOut->lineLen
- BStdOut->nLines + 1); - BStdOut->nLines + 1);
@ -100,7 +99,6 @@ void IoScrollUp(void)
bscroll++; bscroll++;
bvgaflusher(BStdOut); bvgaflusher(BStdOut);
BUnlockBuf(BStdOut); BUnlockBuf(BStdOut);
} }