mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 14:29:02 +00:00
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:
committed by
GitHub
parent
756043760b
commit
4143bcbd37
@@ -185,7 +185,7 @@ function! tutor#TutorCmd(tutor_name)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
call tutor#SetupVim()
|
call tutor#SetupVim()
|
||||||
exe "drop ".l:to_open
|
exe "drop ".fnameescape(l:to_open)
|
||||||
call tutor#EnableInteractive(v:true)
|
call tutor#EnableInteractive(v:true)
|
||||||
call tutor#ApplyTransform()
|
call tutor#ApplyTransform()
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user