From bba1809eac7eda21842fef1aab8723d9bfb56c8f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 11 Apr 2019 09:26:34 +0100 Subject: Merge a number of fixes from master for layouts, mostly prompted by testing by Thomas Sattler. --- tty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 855f8e6a..9ed2b3a9 100644 --- a/tty.c +++ b/tty.c @@ -907,9 +907,8 @@ tty_is_visible(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py, lines = 0; if (xoff + nx <= ctx->ox || xoff >= ctx->ox + ctx->sx || - yoff + ny <= ctx->oy || yoff >= lines + ctx->oy + ctx->sy) { + yoff + ny <= ctx->oy || yoff >= lines + ctx->oy + ctx->sy) return (0); - } return (1); } -- cgit