Open the website
gvim_9.1.1623_x86.exe
Microsoft Windows [10.0.26100.4652]
cmd.exe
I read the source code and the document. I found that when set shellslash. > On MS-Windows, when 'shellslash' is not set, it will enclose > {string} in double quotes and double all double quotes within > {string}. and I tried. # Wrong start /b explorer.exe 'https://github.com/vim/vim/blob/master/runtime/doc/todo.txt' >nul 2>&1 # Right start /b explorer.exe "https://github.com/vim/vim/blob/master/runtime/doc/todo.txt" >nul 2>&1 That's what happening. Maybe I can make a pull request to fix this issue. Before that I want to discuss about how to fix it. Because I am a high school student, who didn't have PR experiment before.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
call dist#vim9#Open("explorer.exe 'https://github.com/vim/vim'")
I guess that should have been:
call dist#vim9#Open('https://github.com/vim/vim') ?
Hm, that is nasty. Does that depend on the shell?
If you want to contribute a PR, that would be great. Perhaps you can start here:
diff --git a/runtime/autoload/dist/vim9.vim b/runtime/autoload/dist/vim9.vim index 6d4079ea3..7a4b44c63 100644 --- a/runtime/autoload/dist/vim9.vim +++ b/runtime/autoload/dist/vim9.vim @@ -121,6 +121,10 @@ def Viewer(): string enddef export def Open(file: string) + if exists('+shellslash') && &shellslash + &shellslash=0 + defer setbufvar('%', '&shellslash', true) + endif Launch($"{Viewer()} {shellescape(file, 1)}") enddef
Don't forget to add a comment why this is necessary. thanks!
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #17995 as completed via 39f9298.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.