aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-02-15 12:01:15 +0000
committerThomas Adam <thomas@xteddy.org>2017-02-15 12:01:15 +0000
commitc9f2dc5ee5ffc2d71f492b23ff1ee80619c12258 (patch)
tree0cd069ad6ba37e6e5c04a72b63d9905c4fdd1522
parent47bc867ab9409657b0b4855388fb991d1ca25135 (diff)
parentdd25a6cdc21c76888c370a053ca2adb710a89cdf (diff)
downloadrtmux-c9f2dc5ee5ffc2d71f492b23ff1ee80619c12258.tar.gz
rtmux-c9f2dc5ee5ffc2d71f492b23ff1ee80619c12258.tar.bz2
rtmux-c9f2dc5ee5ffc2d71f492b23ff1ee80619c12258.zip
Merge branch 'obsd-master'
-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);