diff options
author | 2011-03-08 19:23:49 +0000 | |
---|---|---|
committer | 2011-03-08 19:23:49 +0000 | |
commit | f0a51effb37ec37897e21862d4cf2a4d93b869e2 (patch) | |
tree | 8ec08f1c26a85102044c96f906e0238a1cbac715 | |
parent | Fix extended partition searching so we don't get lost. The offset (diff) | |
download | wireguard-openbsd-f0a51effb37ec37897e21862d4cf2a4d93b869e2.tar.xz wireguard-openbsd-f0a51effb37ec37897e21862d4cf2a4d93b869e2.zip |
Fix an incorrect test which was always true (oupper is always < olower),
from Yusuke ENDOH.
-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; } |