Do not attempt to use client in config file (it will be NULL), GitHub

issue 3206.
pull/3612/head
nicm 2022-06-02 21:19:32 +00:00 committed by Nicholas Marriott
parent 30e06e9d85
commit 988e59cf3e
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ cmd_run_shell_print(struct job *job, const char *msg)
if (cdata->wp_id != -1)
wp = window_pane_find_by_id(cdata->wp_id);
if (wp == NULL && cdata->item != NULL)
if (wp == NULL && cdata->item != NULL && cdata->client != NULL)
wp = server_client_get_pane(cdata->client);
if (wp == NULL && cmd_find_from_nothing(&fs, 0) == 0)
wp = fs.wp;