mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-26 08:38:51 +01:00
Fix an incorrect test which was always true (oupper is always < olower),
from Yusuke ENDOH.
This commit is contained in:
parent
0a404aabd3
commit
54456d5602
2
tty.c
2
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
|
* without this, the entire pane ends up being redrawn many times which
|
||||||
* can be much more data.
|
* 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;
|
wp->flags |= PANE_REDRAW;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user