aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2019-04-09 20:38:43 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-04-09 20:38:43 +0100
commit0cbccc90ab323158aecb961b93954878693c1c90 (patch)
treef03387ecec5e84fcfe222595c0dafb0a7243b472 /tty.c
parent71d90c11dd0a90a4defd3d56843dfcb1170310f5 (diff)
downloadrtmux-0cbccc90ab323158aecb961b93954878693c1c90.tar.gz
rtmux-0cbccc90ab323158aecb961b93954878693c1c90.tar.bz2
rtmux-0cbccc90ab323158aecb961b93954878693c1c90.zip
Set the window size as well as the layout size when using the preset layouts
and calculate the sizes correctly.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c3
1 files changed, 1 insertions, 2 deletions
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);
}