aboutsummaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-04-05 09:33:14 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-05 11:05:31 -0300
commit2dcae28328c195e504fc98a7a0e468f679e3dca2 (patch)
treeeb3e7c31e551b985c71282f5f7d83180aad011b3 /src/misc2.c
parent796b79db8cc952deb8c750b62ee8da6caafe1d88 (diff)
downloadrneovim-2dcae28328c195e504fc98a7a0e468f679e3dca2.tar.gz
rneovim-2dcae28328c195e504fc98a7a0e468f679e3dca2.tar.bz2
rneovim-2dcae28328c195e504fc98a7a0e468f679e3dca2.zip
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
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c
index e4622c8e48..fe80e0bbad 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -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;