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

issue 3206.
This commit is contained in:
nicm 2022-06-02 21:19:32 +00:00
parent 0f6227f46b
commit 18838fbc87

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;