comparison vimtutor.bat @ 13113:1b154b5f247d v8.0.1431

patch 8.0.1431: MS-Windows: vimtutor fails if %TMP% has special chars commit https://github.com/vim/vim/commit/0cbcd949e15ad95171e5b33881d3a30f17073dda Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 26 22:22:55 2018 +0100 patch 8.0.1431: MS-Windows: vimtutor fails if %TMP% has special chars Problem: MS-Windows: vimtutor fails if %TMP% has special chars. Solution: Add quotes. (Tamce, closes https://github.com/vim/vim/issues/2561)
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Jan 2018 22:30:06 +0100
parents ab40ecb0fd73
children 831a3f3be6f4
comparison
equal deleted inserted replaced
13112:2b395caa3880 13113:1b154b5f247d
8 :: When an xx argument is given, it tries loading that tutor. 8 :: When an xx argument is given, it tries loading that tutor.
9 :: When this fails or no xx argument was given, it tries using 'v:lang' 9 :: When this fails or no xx argument was given, it tries using 'v:lang'
10 :: When that also fails, it uses the English version. 10 :: When that also fails, it uses the English version.
11 11
12 :: Use Vim to copy the tutor, it knows the value of $VIMRUNTIME 12 :: Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
13 FOR %%d in (. %TMP% %TEMP%) DO IF EXIST %%d\nul SET TUTORCOPY=%%d\$tutor$ 13 FOR %%d in (. "%TMP%" "%TEMP%") DO IF EXIST %%d\nul SET TUTORCOPY=%%d\$tutor$
14 14
15 SET xx=%1 15 SET xx=%1
16 16
17 IF NOT .%1==.-console GOTO use_gui 17 IF NOT .%1==.-console GOTO use_gui
18 SHIFT 18 SHIFT