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`.

(cherry picked from commit 4143bcbd37)
This commit is contained in:
Andrey Starodubtsev
2025-11-13 05:27:24 +02:00
committed by github-actions[bot]
parent 076f7994be
commit d997c8e344

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