Skip to content

Commit d582163

Browse files
andrey-starodubtsevchrisbra
authored andcommitted
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 <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 384685f commit d582163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/autoload/tutor.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function! tutor#TutorCmd(tutor_name)
211211
endif
212212

213213
call tutor#SetupVim()
214-
exe "drop ".l:to_open
214+
exe "drop ".fnameescape(l:to_open)
215215
call tutor#EnableInteractive(v:true)
216216
endfunction
217217

0 commit comments

Comments
 (0)