aboutsummaryrefslogtreecommitdiff
path: root/popup.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-03-31 10:01:29 +0100
committerThomas Adam <thomas@xteddy.org>2020-03-31 10:01:29 +0100
commitc9cd8f9b5dd030790b097263e7bf1674efabeb72 (patch)
tree539f12ed41c544f51edcaa44849903de02660ded /popup.c
parent588865152a1bb70d77758b68a2869b794aa31dd4 (diff)
parent3bbd66c0137fe95c348ce333ea7eec9507db7659 (diff)
downloadrtmux-c9cd8f9b5dd030790b097263e7bf1674efabeb72.tar.gz
rtmux-c9cd8f9b5dd030790b097263e7bf1674efabeb72.tar.bz2
rtmux-c9cd8f9b5dd030790b097263e7bf1674efabeb72.zip
Merge branch 'obsd-master'
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/popup.c b/popup.c
index 7eff7c14..05ff1b4c 100644
--- a/popup.c
+++ b/popup.c
@@ -443,8 +443,6 @@ popup_display(int flags, struct cmdq_item *item, u_int px, u_int py, u_int sx,
popup_write_screen(c, pd);
if (shellcmd != NULL) {
- pd->ictx = input_init(NULL);
-
if (fs != NULL)
s = fs->s;
else
@@ -455,6 +453,7 @@ popup_display(int flags, struct cmdq_item *item, u_int px, u_int py, u_int sx,
pd->job = job_run(shellcmd, s, cwd, popup_job_update_cb,
popup_job_complete_cb, NULL, pd, jobflags, pd->sx - 2,
pd->sy - 2);
+ pd->ictx = input_init(NULL, job_get_event(pd->job));
}
server_client_set_overlay(c, 0, popup_check_cb, popup_mode_cb,