diff options
Diffstat (limited to 'usr.bin/tmux/screen.c')
-rw-r--r-- | usr.bin/tmux/screen.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/tmux/screen.c b/usr.bin/tmux/screen.c index 7fd8f71f0be..931bfebb248 100644 --- a/usr.bin/tmux/screen.c +++ b/usr.bin/tmux/screen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen.c,v 1.43 2016/10/12 13:24:07 nicm Exp $ */ +/* $OpenBSD: screen.c,v 1.44 2016/10/13 20:27:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -60,7 +60,7 @@ screen_reinit(struct screen *s) screen_reset_tabs(s); - grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy); + grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy, 8); screen_clear_selection(s); } @@ -193,7 +193,8 @@ screen_resize_y(struct screen *s, u_int sy) if (available > 0) { if (available > needed) available = needed; - grid_view_delete_lines(gd, oldy - available, available); + grid_view_delete_lines(gd, oldy - available, available, + 8); } needed -= available; @@ -209,7 +210,7 @@ screen_resize_y(struct screen *s, u_int sy) } else if (needed > 0 && available > 0) { if (available > needed) available = needed; - grid_view_delete_lines(gd, 0, available); + grid_view_delete_lines(gd, 0, available, 8); } s->cy -= needed; } |