diff options
author | nicm <nicm> | 2016-11-04 18:56:25 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-11-04 18:56:25 +0000 |
commit | f947d25c9dd7d736cf22d4acffb40f41d6e0f726 (patch) | |
tree | 95f0517682f1d64d420f602c302779eed8b026c7 | |
parent | 353439aceeed6ab311a74fc38f15276f72c654a4 (diff) | |
download | rtmux-f947d25c9dd7d736cf22d4acffb40f41d6e0f726.tar.gz rtmux-f947d25c9dd7d736cf22d4acffb40f41d6e0f726.tar.bz2 rtmux-f947d25c9dd7d736cf22d4acffb40f41d6e0f726.zip |
Do not try to set the CHANGED flag on windows with no active pane, fixes
problem reported by Nelo-T Wallus.
-rw-r--r-- | cmd-set-option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index 695f5690..7aa09eee 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -187,6 +187,8 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) /* Start or stop timers if necessary. */ if (strcmp(oe->name, "automatic-rename") == 0) { RB_FOREACH(w, windows, &windows) { + if (w->active == NULL) + continue; if (options_get_number(w->options, "automatic-rename")) w->active->flags |= PANE_CHANGED; } |