minor correction

This commit is contained in:
Adrien Bourmault 2019-05-11 10:42:34 +02:00
parent 99a9bbaf5d
commit 5f539e169f
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ void IoScrollDown(void)
void IoScrollUp(void)
{
// Keep the 8 below the 10 given to BOpenTermBufEx
if (bscroll < BtVideoInfo.framebufferHeight * 8)
if (bscroll < BtVideoInfo.framebufferHeight * 8 && bscroll < BStdOut->nLines)
bscroll++;
bvgaflusher(BStdOut);
}