mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Sync OpenBSD patchset 868:
Fix an incorrect test which was always true (oupper is always < olower), from Yusuke ENDOH.
This commit is contained in:
parent
20e17604b5
commit
164c2cbcb0
4
tty.c
4
tty.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tty.c,v 1.204 2011-03-19 23:30:37 tcunha Exp $ */
|
/* $Id: tty.c,v 1.205 2011-03-19 23:32:01 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -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…
x
Reference in New Issue
Block a user