Skip to content

Commit

Permalink
Scroll the right number of lines off the region when clearing.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed May 13, 2017
1 parent d58c379 commit 7a4c66b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tty.c
Expand Up @@ -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;
}

Expand All @@ -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;
}
}
Expand Down

0 comments on commit 7a4c66b

Please sign in to comment.