diff options
author | nicm <nicm> | 2013-10-10 11:46:00 +0000 |
---|---|---|
committer | nicm <nicm> | 2013-10-10 11:46:00 +0000 |
commit | 0538676aa38914097fcf1a8eb292eac8852434aa (patch) | |
tree | a15dff7f348ccdfdf5753bb2771fb5567acd6c36 /resize.c | |
parent | 4c9f41f1adbdf2e9c5fa2def959ac13ea4a9785c (diff) |
Make recalculate_sizes() handle an empty window with no active
pane. This can happen when a window is in two sessions - it isn't
destroyed immediately when the pane goes away but is left until the last
session is destroyed. Fixes problems with grouped sessions reported by
Daniel Ralston.
Diffstat (limited to 'resize.c')
-rw-r--r-- | resize.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -92,7 +92,7 @@ recalculate_sizes(void) for (i = 0; i < ARRAY_LENGTH(&windows); i++) { w = ARRAY_ITEM(&windows, i); - if (w == NULL) + if (w == NULL || w->active == NULL) continue; flag = options_get_number(&w->options, "aggressive-resize"); |