From ebe07c27260c295256e7c66480057a3fcfdc9e7f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 3 Jun 2009 23:26:56 +0000 Subject: Fix some miscalculations when clearing to start of screen: the number of lines to the cursor is cy not cy - 1, and the current cursor cell should be included. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 06ce9248..16a865eb 100644 --- a/tty.c +++ b/tty.c @@ -797,7 +797,7 @@ tty_cmd_clearstartofscreen( tty_putc(tty, ' '); } } - for (i = 0; i < s->old_cx; i++) + for (i = 0; i <= s->old_cx; i++) tty_putc(tty, ' '); } -- cgit