commit 4143bcbd37572bc40e242867ab60675a33cfad0f
parent 756043760b59adb2e708cfbb6c8f5c0674ba4537
Author: Andrey Starodubtsev <andrey-starodubtsev@users.noreply.github.com>
Date: Thu, 13 Nov 2025 05:27:24 +0200
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`.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/autoload/tutor.vim b/runtime/autoload/tutor.vim
@@ -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