Fix an incorrect test which was always true (oupper is always < olower),

from Yusuke ENDOH.
pull/1/head
Nicholas Marriott 2011-03-08 19:23:49 +00:00
parent 0a404aabd3
commit 54456d5602
1 changed files with 1 additions and 1 deletions

2
tty.c
View File

@ -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;
}