summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
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;
}