fix(tutor): escape tutor filename #36539

Since NeoVim is installed in `Program Files` directory by default, path
to tutor filename must be quoted before passing to `:drop`.
This commit is contained in:
Andrey Starodubtsev
2025-11-13 05:27:24 +02:00
committed by GitHub
parent 756043760b
commit 4143bcbd37

View File

@@ -185,7 +185,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)
call tutor#ApplyTransform()
endfunction