0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00

runtime(new-tutor): escape tutor filename

If Vim is installed into the Windows "Program Files" directory the tutor
path name contains spaces and must therefore be quoted before passing to
:drop.

closes: #18742

Signed-off-by: Andrey Starodubtsev <andrey.starodubtsev@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Andrey Starodubtsev
2025-11-13 21:49:20 +00:00
committed by Christian Brabandt
parent 384685fade
commit d5821638e2

View File

@@ -211,7 +211,7 @@ function! tutor#TutorCmd(tutor_name)
endif
call tutor#SetupVim()
exe "drop ".l:to_open
exe "drop ".fnameescape(l:to_open)
call tutor#EnableInteractive(v:true)
endfunction