Make extra_shell_arg a mch_call_shell parameter

This commit is contained in:
Thiago de Arruda
2014-03-29 12:53:11 -03:00
parent 8a61c27b1e
commit c791922224
8 changed files with 15 additions and 16 deletions

View File

@@ -1531,7 +1531,7 @@ int default_fileformat(void)
/*
* Call shell. Calls mch_call_shell, with 'shellxquote' added.
*/
int call_shell(char_u *cmd, int opt)
int call_shell(char_u *cmd, int opt, char_u *extra_shell_arg)
{
char_u *ncmd;
int retval;
@@ -1557,7 +1557,7 @@ int call_shell(char_u *cmd, int opt)
tag_freematch();
if (cmd == NULL || *p_sxq == NUL)
retval = mch_call_shell(cmd, opt);
retval = mch_call_shell(cmd, opt, extra_shell_arg);
else {
char_u *ecmd = cmd;
@@ -1575,7 +1575,7 @@ int call_shell(char_u *cmd, int opt)
STRCAT(ncmd, STRCMP(p_sxq, "(") == 0 ? (char_u *)")"
: STRCMP(p_sxq, "\"(") == 0 ? (char_u *)")\""
: p_sxq);
retval = mch_call_shell(ncmd, opt);
retval = mch_call_shell(ncmd, opt, extra_shell_arg);
vim_free(ncmd);
} else
retval = -1;