mirror of
https://github.com/tmux/tmux.git
synced 2025-04-13 14:58:50 +00:00
Do not try to set the CHANGED flag on windows with no active pane, fixes
problem reported by Nelo-T Wallus.
This commit is contained in:
parent
353439acee
commit
f947d25c9d
@ -187,6 +187,8 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
/* Start or stop timers if necessary. */
|
/* Start or stop timers if necessary. */
|
||||||
if (strcmp(oe->name, "automatic-rename") == 0) {
|
if (strcmp(oe->name, "automatic-rename") == 0) {
|
||||||
RB_FOREACH(w, windows, &windows) {
|
RB_FOREACH(w, windows, &windows) {
|
||||||
|
if (w->active == NULL)
|
||||||
|
continue;
|
||||||
if (options_get_number(w->options, "automatic-rename"))
|
if (options_get_number(w->options, "automatic-rename"))
|
||||||
w->active->flags |= PANE_CHANGED;
|
w->active->flags |= PANE_CHANGED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user