summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-01-06 08:20:01 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-01-06 08:20:01 +0000
commit38ed96cf23735cf39ed79b40c14fd5cf5b14972a (patch)
treeacc7b6303b4652451688d7aa9e9514c358a8a67d /usr.bin/tmux
parentb345e53f87a05111b84baa47c9c8143edfeb652f (diff)
Ignore windows without a size set (may be used for pane only), from
Anindya Mukherjee.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/resize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/resize.c b/usr.bin/tmux/resize.c
index bc141e50be6..5e22cf9c8bd 100644
--- a/usr.bin/tmux/resize.c
+++ b/usr.bin/tmux/resize.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resize.c,v 1.48 2021/12/06 10:08:42 nicm Exp $ */
+/* $OpenBSD: resize.c,v 1.49 2022/01/06 08:20:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -178,7 +178,7 @@ clients_calculate_size(int type, int current, struct client *c,
cw = NULL;
/* Work out this client's size. */
- if (cw != NULL) {
+ if (cw != NULL && cw->sx != 0 && cw->sy != 0) {
cx = cw->sx;
cy = cw->sy;
} else {