aboutsummaryrefslogtreecommitdiff
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-11-04 20:01:11 +0000
committerThomas Adam <thomas@xteddy.org>2016-11-04 20:01:11 +0000
commit13f1a922e180bc8345a32929bbaa74f307569081 (patch)
tree670aa415e5a58f40a0804303c5f7d6fab729e364 /cmd-set-option.c
parent1de107c40502a713a68450f93d26171a8cbdbef4 (diff)
parentf947d25c9dd7d736cf22d4acffb40f41d6e0f726 (diff)
downloadrtmux-13f1a922e180bc8345a32929bbaa74f307569081.tar.gz
rtmux-13f1a922e180bc8345a32929bbaa74f307569081.tar.bz2
rtmux-13f1a922e180bc8345a32929bbaa74f307569081.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c2
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;
}