diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-11 09:26:34 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-11 09:26:34 +0100 |
commit | bba1809eac7eda21842fef1aab8723d9bfb56c8f (patch) | |
tree | 0ae79f9e42ddc9d3a0f8eb67be8b853b74492d0b /tty.c | |
parent | 73b54a0e5fa14736d1b7fbac997dd5b12c6940fb (diff) | |
download | rtmux-bba1809eac7eda21842fef1aab8723d9bfb56c8f.tar.gz rtmux-bba1809eac7eda21842fef1aab8723d9bfb56c8f.tar.bz2 rtmux-bba1809eac7eda21842fef1aab8723d9bfb56c8f.zip |
Merge a number of fixes from master for layouts, mostly prompted by testing by
Thomas Sattler.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |