mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
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.
This commit is contained in:
parent
3c298b98ce
commit
7ffb414299
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user