summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-05-13 07:41:59 +0000
committernicm <nicm@openbsd.org>2017-05-13 07:41:59 +0000
commite41cdae7cf21ce1b573311e47632cfb8f1ca2236 (patch)
tree46f6a7447489f796fb648cb9e49533cdb56d853f /usr.bin/tmux/tty.c
parentSome other unused variables. (diff)
downloadwireguard-openbsd-e41cdae7cf21ce1b573311e47632cfb8f1ca2236.tar.xz
wireguard-openbsd-e41cdae7cf21ce1b573311e47632cfb8f1ca2236.zip
Scroll the right number of lines off the region when clearing.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c6
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;
}
}