summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-02-15 11:22:13 +0000
committernicm <nicm@openbsd.org>2017-02-15 11:22:13 +0000
commit18f5b2bd3ccf783437df1cee3523267f0528c6bb (patch)
tree9e6faf434cd45d48662eac459545a206c424f514 /usr.bin/tmux/tty.c
parent"status bar" -> "status line" for consistency, from Benjamin Dopplinger. (diff)
downloadwireguard-openbsd-18f5b2bd3ccf783437df1cee3523267f0528c6bb.tar.xz
wireguard-openbsd-18f5b2bd3ccf783437df1cee3523267f0528c6bb.zip
Do not clear to end of screen unless the pane is at the bottom.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index e83f0350609..9285a2eacf9 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.247 2017/02/10 15:39:43 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.248 2017/02/15 11:22:13 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);