diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-03-08 19:23:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-03-08 19:23:50 +0000 |
commit | 11d5b58a03c0a01c6a8e01f73a4ed9da1d307421 (patch) | |
tree | 081d6c88588bfcb51a39d84f4a710040c2111de5 /usr.bin/tmux | |
parent | 89b8def59d9a3017d87424b789c1b7b9d7dbdbe3 (diff) |
Fix an incorrect test which was always true (oupper is always < olower),
from Yusuke ENDOH.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index a24a42e4b6f..1d5ad909a91 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.100 2011/03/07 23:46:27 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.101 2011/03/08 19:23:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -454,7 +454,7 @@ tty_redraw_region(struct tty *tty, const struct tty_ctx *ctx) * without this, the entire pane ends up being redrawn many times which * can be much more data. */ - if (ctx->orupper - ctx->orlower >= screen_size_y(s) / 2) { + if (ctx->orlower - ctx->orupper >= screen_size_y(s) / 2) { wp->flags |= PANE_REDRAW; return; } |