summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-08 05:56:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-08 05:56:11 +0000
commit8c497ecac0ba0d20b0129e195e1bebf443772faf (patch)
treed5898ae15e64704de0f5e9851606a70c32cc1232 /screen.c
parent084d07f4eb5dc3d90e28725524147e66a25b869b (diff)
When reinitialising the screen, do not omit to clear the last line.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index fb625aa9..d296cd78 100644
--- a/screen.c
+++ b/screen.c
@@ -54,7 +54,7 @@ screen_reinit(struct screen *s)
screen_reset_tabs(s);
- grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy - 1);
+ grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy);
screen_clear_selection(s);
}