runtime(new-tutor): escape tutor filename
Commit:
https://github.com/vim/vim/commit/d5821638e24d1fa3c64780aa4a776d087f153165
Author: Andrey Starodubtsev <[email protected]>
Date: Thu Nov 13 21:49:20 2025 +0000
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]>
diff --git a/runtime/autoload/tutor.vim b/runtime/autoload/tutor.vim
index c3b5df37d..a31f74680 100644
--- a/runtime/autoload/tutor.vim
+++ b/runtime/autoload/tutor.vim
@@ -211,7 +211,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)
endfunction
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vJfMJ-001uGh-Hp%40256bit.org.