summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2017-05-13 07:41:59 +0000
committernicm <nicm>2017-05-13 07:41:59 +0000
commit7a4c66b7f5710e92f4af2bdfdb3b88bd64306320 (patch)
treedc390f7df3cdf8671190975f96cb7737c19ebbbd /tty.c
parentd58c3793d6ccd618e13287974e8145f640a3185a (diff)
Scroll the right number of lines off the region when clearing.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 8bad7325..84df06cb 100644
--- a/tty.c
+++ b/tty.c
@@ -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;
}
}