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.
This commit is contained in:
Nicholas Marriott
2009-06-03 23:26:56 +00:00
parent 3f16fcb30a
commit ebe07c2726
2 changed files with 3 additions and 3 deletions

2
tty.c
View File

@ -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, ' ');
}