Client could be NULL in select-window (for example in .tmux.conf), do

not set latest session if so. GitHub issue 2429 from Han Boetes.
pull/2571/head
nicm 2020-10-19 06:39:28 +00:00 committed by Nicholas Marriott
parent 3c298b98ce
commit 7ffb414299
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ cmd_select_window_exec(struct cmd *self, struct cmdq_item *item)
}
cmdq_insert_hook(s, item, current, "after-select-window");
}
if (c->session != NULL)
if (c != NULL && c->session != NULL)
s->curw->window->latest = c;
recalculate_sizes();