summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-05-12 23:10:20 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-05-12 23:10:20 +0000
commit21e1dbcbeadd6c30bdf33e600fbdf7a0770fd8c8 (patch)
tree45e6931fc9f3fc014fbb998db2fe041c42e539f5 /usr.bin/tmux/tty.c
parentd9bd2deda24aaef411aa7867945efb3f69513bce (diff)
Compare >= for columns not >.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-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)) {