diff options
| author | 2019-04-17 14:43:49 +0000 | |
|---|---|---|
| committer | 2019-04-17 14:43:49 +0000 | |
| commit | d4ddf7e1665cc214d55aeaa38156b8cf76b4c8bf (patch) | |
| tree | 2def0da642d75e0b90b3e329f5428d7f07c9573c /usr.bin/tmux/tty.c | |
| parent | Do not let the size of the pane status screen go negative. (diff) | |
| download | wireguard-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.c | 5 |
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); } |
