diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-05-13 07:42:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-05-13 07:42:00 +0000 |
commit | c54d7292a1bfcd68f2b3951e877b0982051a6139 (patch) | |
tree | 13c3cc9380c27384dee223cfee2b39cadff40d79 /usr.bin/tmux | |
parent | 8b92e6d0f2aee350aa66b96fc8c193cc4ec0fbc7 (diff) |
Scroll the right number of lines off the region when clearing.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index cf95d5920b4..50be92b0324 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.282 2017/05/13 07:30:50 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.283 2017/05/13 07:41:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -838,7 +838,7 @@ tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py, tty_term_has(tty->term, TTYC_INDN)) { tty_region(tty, py, py + ny - 1); tty_margin_off(tty); - tty_putcode1(tty, TTYC_INDN, ny); + tty_putcode1(tty, TTYC_INDN, ny - 1); return; } @@ -853,7 +853,7 @@ tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py, tty_term_has(tty->term, TTYC_INDN)) { tty_region(tty, py, py + ny - 1); tty_margin(tty, px, px + nx - 1); - tty_putcode1(tty, TTYC_INDN, ny); + tty_putcode1(tty, TTYC_INDN, ny - 1); return; } } |