mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.3.450
Problem: Win32: Still a problem with "!start /b". Solution: Fix pointer use. (Yasuhiro Matsumoto)
This commit is contained in:
@@ -4008,21 +4008,23 @@ mch_call_shell(
|
|||||||
if (flags != CREATE_NEW_CONSOLE)
|
if (flags != CREATE_NEW_CONSOLE)
|
||||||
{
|
{
|
||||||
char_u *subcmd;
|
char_u *subcmd;
|
||||||
char_u *cmd_shell = default_shell();
|
char_u *cmd_shell = mch_getenv("COMSPEC");
|
||||||
|
|
||||||
|
if (cmd_shell == NULL || *cmd_shell == NUL)
|
||||||
|
cmd_shell = default_shell();
|
||||||
|
|
||||||
subcmd = vim_strsave_escaped_ext(cmdbase, "|", '^', FALSE);
|
subcmd = vim_strsave_escaped_ext(cmdbase, "|", '^', FALSE);
|
||||||
if (subcmd != NULL)
|
if (subcmd != NULL)
|
||||||
{
|
{
|
||||||
/* make "cmd.exe /c arguments" */
|
/* make "cmd.exe /c arguments" */
|
||||||
cmdlen = STRLEN(cmd_shell) + STRLEN(subcmd) + 5;
|
cmdlen = STRLEN(cmd_shell) + STRLEN(subcmd) + 5;
|
||||||
vim_free(subcmd);
|
|
||||||
|
|
||||||
newcmd = lalloc(cmdlen, TRUE);
|
newcmd = lalloc(cmdlen, TRUE);
|
||||||
if (newcmd != NULL)
|
if (newcmd != NULL)
|
||||||
vim_snprintf((char *)newcmd, cmdlen, "%s /c %s",
|
vim_snprintf((char *)newcmd, cmdlen, "%s /c %s",
|
||||||
default_shell, subcmd);
|
cmd_shell, subcmd);
|
||||||
else
|
else
|
||||||
newcmd = cmdbase;
|
newcmd = cmdbase;
|
||||||
|
vim_free(subcmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
450,
|
||||||
/**/
|
/**/
|
||||||
449,
|
449,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user