0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1782: MS-Windows: system() has temp file error with 'noshelltemp'

Problem:    MS-Windows: system() has temp file error with 'noshelltemp'.
Solution:   Check s_dont_use_vimrun. (Ken Takata, closes #4754)
This commit is contained in:
Bram Moolenaar
2019-07-31 20:53:56 +02:00
parent 70576f70f7
commit 0e6bfb9b2e
2 changed files with 3 additions and 1 deletions

View File

@@ -4882,7 +4882,7 @@ mch_call_shell(
# ifdef VIMDLL
(gui.in_use || gui.starting) &&
# endif
STRCMP(p_shcf, "/c") == 0)
s_dont_use_vimrun && STRCMP(p_shcf, "/c") == 0)
// workaround for the case that "vimrun" does not exist
vim_snprintf((char *)newcmd, cmdlen, "%s %s %s %s %s",
p_sh, p_shcf, p_sh, p_shcf, cmd);