From 21e1dbcbeadd6c30bdf33e600fbdf7a0770fd8c8 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 12 May 2017 23:10:20 +0000 Subject: Compare >= for columns not >. --- usr.bin/tmux/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/tty.c') 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 @@ -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)) { -- cgit v1.2.3