aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-04-23 20:01:13 +0100
committerThomas Adam <thomas@xteddy.org>2017-04-23 20:01:13 +0100
commit9d041d8e6c1f24828da727077bc13b49c1f58654 (patch)
tree88d58e44c6ec786ac65e7ee32cf98eade6f1a51f /tty.c
parentb853054e711c37a1f2c086311c1781ba44d66ef4 (diff)
parent51720146680d8fdba021dae755fc50305c9a0206 (diff)
downloadrtmux-9d041d8e6c1f24828da727077bc13b49c1f58654.tar.gz
rtmux-9d041d8e6c1f24828da727077bc13b49c1f58654.tar.bz2
rtmux-9d041d8e6c1f24828da727077bc13b49c1f58654.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index 362cd36c..412cac69 100644
--- a/tty.c
+++ b/tty.c
@@ -1218,6 +1218,7 @@ tty_cmd_clearscreen(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, 0, 0);