The loop condition used `y <= s->height` instead of `y < s->height`, causing vc_clear_xy() to be called with y == s->height. This clears a row in the scrollback buffer beyond the visible screen.
Signed-off-by: Marc-André Lureau <[email protected]> --- ui/console-vc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/console-vc.c b/ui/console-vc.c index f22806fed79..8dee1f9bd01 100644 --- a/ui/console-vc.c +++ b/ui/console-vc.c @@ -899,7 +899,7 @@ static void vc_putchar(VCChardev *vc, int ch) break; case 2: /* clear entire screen */ - for (y = 0; y <= s->height; y++) { + for (y = 0; y < s->height; y++) { for (x = 0; x < s->width; x++) { vc_clear_xy(vc, x, y); } -- 2.53.0
