summaryrefslogtreecommitdiffstats
path: root/window-copy.c
diff options
context:
space:
mode:
authornicm <nicm>2021-10-11 10:55:30 +0000
committernicm <nicm>2021-10-11 10:55:30 +0000
commit759efe1b3327a7244c03ecc7b90e0e3c49712d06 (patch)
tree58e4302cb00b591f010c38a6871b1e9a779da5a3 /window-copy.c
parent7800a431ea63f3be4f0763df3f3a2fae44aeac58 (diff)
Add -e flag to set environment for popup, from Alexis Hildebrandt in
GitHub issue 2924.
Diffstat (limited to 'window-copy.c')
-rw-r--r--window-copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/window-copy.c b/window-copy.c
index c1a31b48..ec6a2f4e 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -4531,8 +4531,8 @@ window_copy_pipe_run(struct window_mode_entry *wme, struct session *s,
if (cmd == NULL || *cmd == '\0')
cmd = options_get_string(global_options, "copy-command");
if (cmd != NULL && *cmd != '\0') {
- job = job_run(cmd, 0, NULL, s, NULL, NULL, NULL, NULL, NULL,
- JOB_NOWAIT, -1, -1);
+ job = job_run(cmd, 0, NULL, NULL, s, NULL, NULL, NULL, NULL,
+ NULL, JOB_NOWAIT, -1, -1);
bufferevent_write(job_get_event(job), buf, *len);
}
return (buf);