diff options
| author | Nicholas Marriott <nicm@openbsd.org> | 2011-03-08 19:23:49 +0000 |
|---|---|---|
| committer | Nicholas Marriott <nicm@openbsd.org> | 2011-03-08 19:23:49 +0000 |
| commit | 54456d5602fb05ac30af0167242deaa44adf83ae (patch) | |
| tree | 2837376c4497f9a3c499520e61e19ef45686363b | |
| parent | 0a404aabd3d0e383b8f05ba6090ca927f4baccb2 (diff) | |
| download | rtmux-54456d5602fb05ac30af0167242deaa44adf83ae.tar.gz rtmux-54456d5602fb05ac30af0167242deaa44adf83ae.tar.bz2 rtmux-54456d5602fb05ac30af0167242deaa44adf83ae.zip | |
Fix an incorrect test which was always true (oupper is always < olower),
from Yusuke ENDOH.
| -rw-r--r-- | tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |