mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-30 03:54:10 +01:00
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.
This commit is contained in:
parent
4c9f41f1ad
commit
0538676aa3
2
resize.c
2
resize.c
@ -92,7 +92,7 @@ recalculate_sizes(void)
|
|||||||
|
|
||||||
for (i = 0; i < ARRAY_LENGTH(&windows); i++) {
|
for (i = 0; i < ARRAY_LENGTH(&windows); i++) {
|
||||||
w = ARRAY_ITEM(&windows, i);
|
w = ARRAY_ITEM(&windows, i);
|
||||||
if (w == NULL)
|
if (w == NULL || w->active == NULL)
|
||||||
continue;
|
continue;
|
||||||
flag = options_get_number(&w->options, "aggressive-resize");
|
flag = options_get_number(&w->options, "aggressive-resize");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user