diff options
author | erw7 <erw7.github@gmail.com> | 2020-02-05 16:04:45 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2020-06-10 22:21:14 +0900 |
commit | d17e38e48209c19b63d809c5b807613f15aa03c8 (patch) | |
tree | d65d1445fcf8befb2ea556b180bd3d05019f7bc1 /src/nvim/channel.c | |
parent | d8c5d122f1ba95bc71a78c5d70465bfa88623bd7 (diff) | |
download | rneovim-d17e38e48209c19b63d809c5b807613f15aa03c8.tar.gz rneovim-d17e38e48209c19b63d809c5b807613f15aa03c8.tar.bz2 rneovim-d17e38e48209c19b63d809c5b807613f15aa03c8.zip |
Add overlapped option to jobstart
When UV_OVERLAPPED_PIPE was used for the pipe passed to the child process, a
problem occurred with the standard input of the .Net Framework application
(#11809). Therefore, add the overlapped option to jobstart() and change it so
that it is set only when necessary
Diffstat (limited to 'src/nvim/channel.c')
-rw-r--r-- | src/nvim/channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/channel.c b/src/nvim/channel.c index 5eb29a7290..37cbfb968b 100644 --- a/src/nvim/channel.c +++ b/src/nvim/channel.c @@ -301,7 +301,8 @@ static void close_cb(Stream *stream, void *data) /// @returns [allocated] channel Channel *channel_job_start(char **argv, CallbackReader on_stdout, CallbackReader on_stderr, Callback on_exit, - bool pty, bool rpc, bool detach, const char *cwd, + bool pty, bool rpc, bool overlapped, bool detach, + const char *cwd, uint16_t pty_width, uint16_t pty_height, char *term_name, char **env, varnumber_T *status_out) { @@ -342,6 +343,7 @@ Channel *channel_job_start(char **argv, CallbackReader on_stdout, proc->detach = detach; proc->cwd = cwd; proc->env = env; + proc->overlapped = overlapped; char *cmd = xstrdup(proc->argv[0]); bool has_out, has_err; |