summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-05-12 23:10:19 +0000
committernicm <nicm@openbsd.org>2017-05-12 23:10:19 +0000
commitf360c371b9e1b3d4e2078b8f10399ddcd7b0c9b9 (patch)
tree28086d633fbf66344e6ae182183bd721de145fa2
parentCan scroll away full lines to clear them too. (diff)
downloadwireguard-openbsd-f360c371b9e1b3d4e2078b8f10399ddcd7b0c9b9.tar.xz
wireguard-openbsd-f360c371b9e1b3d4e2078b8f10399ddcd7b0c9b9.zip
Compare >= for columns not >.
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index a63cd7424ec..39fcdf6f257 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.280 2017/05/12 23:06:43 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.281 2017/05/12 23:10:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -832,7 +832,7 @@ tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py,
/* Full lines can be scrolled away to clear them. */
if (px == 0 &&
- px + nx > tty->sx &&
+ px + nx >= tty->sx &&
ny > 2 &&
tty_term_has(tty->term, TTYC_CSR) &&
tty_term_has(tty->term, TTYC_INDN)) {