]> granicus.if.org Git - vim/commitdiff
patch 8.0.1431: MS-Windows: vimtutor fails if %TMP% has special chars v8.0.1431
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Jan 2018 21:22:55 +0000 (22:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Jan 2018 21:22:55 +0000 (22:22 +0100)
Problem:    MS-Windows: vimtutor fails if %TMP% has special chars.
Solution:   Add quotes. (Tamce, closes #2561)

src/version.c
vimtutor.bat

index 7786474d342a9403295c8b12a08f2693593d20a0..6362b55279e7368aab8b2da120dc3bdb33cb14c5 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1431,
 /**/
     1430,
 /**/
index a670b0e31c74729f5280affab7732f627433e0f2..0cab3c3bb8ee103976981ff34b7cfb83702aa4ab 100644 (file)
@@ -10,7 +10,7 @@
 :: When that also fails, it uses the English version.
 
 :: Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
-FOR %%d in (. %TMP% %TEMP%) DO IF EXIST %%d\nul SET TUTORCOPY=%%d\$tutor$
+FOR %%d in (. "%TMP%" "%TEMP%") DO IF EXIST %%d\nul SET TUTORCOPY=%%d\$tutor$
 
 SET xx=%1