summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-set-option.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-11-04 18:56:25 +0000
committernicm <nicm@openbsd.org>2016-11-04 18:56:25 +0000
commit920e4eae2f0092e64e452564b25371d836e4cd37 (patch)
tree341e70751309a0027fef319bcf1ce3f783252d6d /usr.bin/tmux/cmd-set-option.c
parentTidy up the usage of peer_ecdh_tmp, following the fixed ECDH removal. (diff)
downloadwireguard-openbsd-920e4eae2f0092e64e452564b25371d836e4cd37.tar.xz
wireguard-openbsd-920e4eae2f0092e64e452564b25371d836e4cd37.zip
Do not try to set the CHANGED flag on windows with no active pane, fixes
problem reported by Nelo-T Wallus.
Diffstat (limited to 'usr.bin/tmux/cmd-set-option.c')
-rw-r--r--usr.bin/tmux/cmd-set-option.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c
index b7f3b8d86e9..405226f9069 100644
--- a/usr.bin/tmux/cmd-set-option.c
+++ b/usr.bin/tmux/cmd-set-option.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-set-option.c,v 1.101 2016/10/16 19:04:05 nicm Exp $ */
+/* $OpenBSD: cmd-set-option.c,v 1.102 2016/11/04 18:56:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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;
}