From bed8153ba00fef8ed2f618463fa631c71b8f51cf Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 5 Nov 2009 22:35:28 +0000 Subject: [PATCH] Clear to the end of the screen from the right starting point when drawing line-by-line (in panes or if ed not supported). Fixes problem spotted by Frank Terbeck. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 6ab3a211..b4da9983 100644 --- a/tty.c +++ b/tty.c @@ -784,7 +784,7 @@ tty_cmd_clearendofscreen(struct tty *tty, const struct tty_ctx *ctx) } else { for (i = ctx->ocx; i < screen_size_x(s); i++) tty_putc(tty, ' '); - for (j = ctx->ocy; j < screen_size_y(s); j++) { + for (j = ctx->ocy + 1; j < screen_size_y(s); j++) { tty_cursor_pane(tty, ctx, 0, j); for (i = 0; i < screen_size_x(s); i++) tty_putc(tty, ' ');