runtime(openPlugin): Open should open file names with spaces in Windows

Commit: 
https://github.com/vim/vim/commit/5923216f79fb3bdd23c0dffcc6643d580ab36792
Author: Maxim Kim <haba...@gmail.com>
Date:   Wed Jun 11 21:10:59 2025 +0200

    runtime(openPlugin): Open should open file names with spaces in Windows
    
    Use <f-args> instead of <q-args> in commands:
    
    - :Open
    - :Launch
    - :URLOpen
    
    fixes #17468
    closes: #17517
    
    Signed-off-by: Maxim Kim <haba...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/plugin/openPlugin.vim b/runtime/plugin/openPlugin.vim
index 8e0ae4b99..ff9c5a385 100644
--- a/runtime/plugin/openPlugin.vim
+++ b/runtime/plugin/openPlugin.vim
@@ -3,7 +3,7 @@ vim9script
 # Vim runtime support library
 #
 # Maintainer:   The Vim Project <https://github.com/vim/vim>
-# Last Change:  2025 Apr 02
+# Last Change:  2025 Jun 11
 
 if exists("g:loaded_openPlugin") || &cp
   finish
@@ -12,14 +12,14 @@ g:loaded_openPlugin = 1
 
 import autoload 'dist/vim9.vim'
 
-command -complete=shellcmd -nargs=1 Launch vim9.Launch(trim(<q-args>))
+command -complete=shellcmd -nargs=1 Launch vim9.Launch(trim(<f-args>))
 
-# technically, -nargs=1 is correct, but this throws E480: No match 
+# technically, -nargs=1 is correct, but this throws E480: No match
 # when the argument contains a wildchar on Windows
-command -complete=file -nargs=* Open vim9.Open(trim(<q-args>))
+command -complete=file -nargs=* Open vim9.Open(trim(<f-args>))
 # Use URLOpen when you don't want completion to happen
 # (or because you want to avoid cmdline-special)
-command -nargs=1 URLOpen vim9.Open(trim(<q-args>))
+command -nargs=1 URLOpen vim9.Open(trim(<f-args>))
 
 const no_gx = get(g:, "nogx", get(g:, "netrw_nogx", false))
 if !no_gx

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uPQud-00Dqhu-Qo%40256bit.org.

Raspunde prin e-mail lui