]> granicus.if.org Git - vim/commitdiff
patch 8.1.1782: MS-Windows: system() has temp file error with 'noshelltemp' v8.1.1782
authorBram Moolenaar <Bram@vim.org>
Wed, 31 Jul 2019 18:53:56 +0000 (20:53 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 31 Jul 2019 18:53:56 +0000 (20:53 +0200)
Problem:    MS-Windows: system() has temp file error with 'noshelltemp'.
Solution:   Check s_dont_use_vimrun. (Ken Takata, closes #4754)

src/os_win32.c
src/version.c

index 102adb62c18147164f8fa688e2e53812f77f2af2..5bff89ad3ae7039f733fabb3892a3b75fa3dd0a3 100644 (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);
index 855c0fe2ce3b35f15d362af1dd5b2ab322d9e76d..03cccfb06a2920a01367ef8fd2f0965db4db45b4 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1782,
 /**/
     1781,
 /**/