summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2017-02-15 11:22:13 +0000
committernicm <nicm>2017-02-15 11:22:13 +0000
commitdd25a6cdc21c76888c370a053ca2adb710a89cdf (patch)
treedeb7103ec9ce4862b594c504c30e1a44dd29534f
parent640d9e54b7e2f645b1e59908f37c1806355bec33 (diff)
Do not clear to end of screen unless the pane is at the bottom.
-rw-r--r--tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index 53f57713..7bf13c46 100644
--- a/tty.c
+++ b/tty.c
@@ -1031,6 +1031,7 @@ tty_cmd_clearendofscreen(struct tty *tty, const struct tty_ctx *ctx)
tty_margin_off(tty);
if (tty_pane_full_width(tty, ctx) &&
+ ctx->yoff + wp->sy >= tty->sy - 1 &&
status_at_line(tty->client) <= 0 &&
tty_term_has(tty->term, TTYC_ED)) {
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);