aboutsummaryrefslogtreecommitdiff
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-06-03 00:01:08 +0100
committerThomas Adam <thomas@xteddy.org>2022-06-03 00:01:08 +0100
commit1184dc08d4c85c489126365896602d151c8080ad (patch)
treee6b1082b1daecd7ab93ba6428f7b96b792ef3dad /cmd-run-shell.c
parentbe2617036ff7f53343e24101654015b875258777 (diff)
parent18838fbc877b5c003449fa10df353405c024f0f5 (diff)
downloadrtmux-1184dc08d4c85c489126365896602d151c8080ad.tar.gz
rtmux-1184dc08d4c85c489126365896602d151c8080ad.tar.bz2
rtmux-1184dc08d4c85c489126365896602d151c8080ad.zip
Merge branch 'obsd-master'
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;