aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-03-19 23:32:01 +0000
committerTiago Cunha <tcunha@gmx.com>2011-03-19 23:32:01 +0000
commit164c2cbcb04ea9552017d5d1c6a2e46a84013d36 (patch)
tree5bbb61a23ddec989297882d657ab00ba1c787cd2
parent20e17604b5bb7c89be1182428ed94dfe7e2b1d37 (diff)
downloadrtmux-164c2cbcb04ea9552017d5d1c6a2e46a84013d36.tar.gz
rtmux-164c2cbcb04ea9552017d5d1c6a2e46a84013d36.tar.bz2
rtmux-164c2cbcb04ea9552017d5d1c6a2e46a84013d36.zip
Sync OpenBSD patchset 868:
Fix an incorrect test which was always true (oupper is always < olower), from Yusuke ENDOH.
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 56747c8a..689c7634 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.204 2011-03-19 23:30:37 tcunha Exp $ */
+/* $Id: tty.c,v 1.205 2011-03-19 23:32:01 tcunha 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;
}