summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-04-17 14:43:49 +0000
committernicm <nicm@openbsd.org>2019-04-17 14:43:49 +0000
commitd4ddf7e1665cc214d55aeaa38156b8cf76b4c8bf (patch)
tree2def0da642d75e0b90b3e329f5428d7f07c9573c /usr.bin/tmux/tty.c
parentDo not let the size of the pane status screen go negative. (diff)
downloadwireguard-openbsd-d4ddf7e1665cc214d55aeaa38156b8cf76b4c8bf.tar.xz
wireguard-openbsd-d4ddf7e1665cc214d55aeaa38156b8cf76b4c8bf.zip
Set the window size as well as the layout size when using the preset
layouts.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 90e73dfae7f..fbf706cd6c2 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.319 2019/03/14 17:58:52 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.320 2019/04/17 14:43:49 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);
}