mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
Windows: disable libuv argument escaping for uv_spawn #3305
When calling uv_spawn to launch a process set the libuv process flag UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS to disable escaping for the arguments otherwise libuv will wrap arguments in quotes.
This commit is contained in:
parent
5230aa8de9
commit
dc9652e68d
@ -19,7 +19,8 @@ bool libuv_process_spawn(LibuvProcess *uvproc)
|
||||
Process *proc = (Process *)uvproc;
|
||||
uvproc->uvopts.file = proc->argv[0];
|
||||
uvproc->uvopts.args = proc->argv;
|
||||
uvproc->uvopts.flags = UV_PROCESS_WINDOWS_HIDE;
|
||||
uvproc->uvopts.flags = UV_PROCESS_WINDOWS_HIDE
|
||||
| UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS;
|
||||
uvproc->uvopts.exit_cb = exit_cb;
|
||||
uvproc->uvopts.cwd = NULL;
|
||||
uvproc->uvopts.env = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user