From 54456d5602fb05ac30af0167242deaa44adf83ae Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 8 Mar 2011 19:23:49 +0000 Subject: [PATCH] Fix an incorrect test which was always true (oupper is always < olower), from Yusuke ENDOH. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 46b8a475..82162097 100644 --- a/tty.c +++ b/tty.c @@ -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; }