summaryrefslogtreecommitdiffstats
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2022-06-02 21:19:32 +0000
committernicm <nicm>2022-06-02 21:19:32 +0000
commit18838fbc877b5c003449fa10df353405c024f0f5 (patch)
tree4525163820848f2904e3ec9c3723c87ae2a93ed6 /cmd-run-shell.c
parent0f6227f46b1d33476ef448682a2ba0b0290e6d9b (diff)
Do not attempt to use client in config file (it will be NULL), GitHub
issue 3206.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index db5774d2..560eface 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -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;