diff options
author | nicm <nicm> | 2020-10-19 06:39:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-10-29 13:47:40 +0000 |
commit | 7ffb41429955b714f8b872fe375360e615a05003 (patch) | |
tree | b35845b67a9e82c7c3e5854ec3e442c6f69c8b8c | |
parent | 3c298b98ce92a69573241c87846a1a7610ce68e4 (diff) | |
download | rtmux-7ffb41429955b714f8b872fe375360e615a05003.tar.gz rtmux-7ffb41429955b714f8b872fe375360e615a05003.tar.bz2 rtmux-7ffb41429955b714f8b872fe375360e615a05003.zip |
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.
-rw-r--r-- | cmd-select-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-select-window.c b/cmd-select-window.c index c85f36be..8dd358b0 100644 --- a/cmd-select-window.c +++ b/cmd-select-window.c @@ -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(); |