mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
Rewrite mch_call_shell
on top of libuv
- Rename to `os_call_shell` - Use another entry point for libuv default event loop - Fix the `call_shell` reference in misc2.c
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
#include "ui.h"
|
||||
#include "window.h"
|
||||
#include "os/os.h"
|
||||
#include "os/shell.h"
|
||||
|
||||
static int coladvance2(pos_T *pos, int addspaces, int finetune,
|
||||
colnr_T wcol);
|
||||
@@ -1234,7 +1235,7 @@ int call_shell(char_u *cmd, ShellOpts opts, char_u *extra_shell_arg)
|
||||
tag_freematch();
|
||||
|
||||
if (cmd == NULL || *p_sxq == NUL)
|
||||
retval = mch_call_shell(cmd, opts, extra_shell_arg);
|
||||
retval = os_call_shell(cmd, opts, extra_shell_arg);
|
||||
else {
|
||||
char_u *ecmd = cmd;
|
||||
|
||||
@@ -1252,7 +1253,7 @@ int call_shell(char_u *cmd, ShellOpts opts, char_u *extra_shell_arg)
|
||||
STRCAT(ncmd, STRCMP(p_sxq, "(") == 0 ? (char_u *)")"
|
||||
: STRCMP(p_sxq, "\"(") == 0 ? (char_u *)")\""
|
||||
: p_sxq);
|
||||
retval = mch_call_shell(ncmd, opts, extra_shell_arg);
|
||||
retval = os_call_shell(ncmd, opts, extra_shell_arg);
|
||||
vim_free(ncmd);
|
||||
} else
|
||||
retval = -1;
|
||||
|
Reference in New Issue
Block a user