- term->ViewPos = MIN(
- term->ViewPos + term->Width,
- term->Width * term->Height * giVT_Scrollback
- );
+ // Note the lack of giVT_Scrollback+1, view top can't go above size-onescreen
+ term->ViewTopRow = MIN(term->ViewTopRow + 1, term->Height * giVT_Scrollback);