aboutsummaryrefslogtreecommitdiff
path: root/resize.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-12-07 09:52:59 +0000
committerThomas Adam <thomas@xteddy.org>2021-12-07 09:52:59 +0000
commit138ffc7cb6225b8a6d54d771b0112635f0dbb42e (patch)
tree289b9f8c4ca207f92b6d81f9511c520969241120 /resize.c
parentef676e1202a4d5c423d5bba2f8ecba1f768d8364 (diff)
parentd721fb2a9fd70c157abb8540d4c50fca654f9f4d (diff)
downloadrtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.tar.gz
rtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.tar.bz2
rtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'resize.c')
-rw-r--r--resize.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/resize.c b/resize.c
index 8416ad6a..175dd740 100644
--- a/resize.c
+++ b/resize.c
@@ -348,6 +348,8 @@ recalculate_size_skip_client(struct client *loop, __unused int type,
* is not the current window - this is used for aggressive-resize.
* Otherwise skip any session that doesn't contain the window.
*/
+ if (loop->session->curw == NULL)
+ return (1);
if (current)
return (loop->session->curw->window != w);
return (session_has(loop->session, w) == 0);