Files
vim-mirror/runtime/doc
Maxim Kim f0e874a129 patch 9.2.0494: User commands cannot handle single args with spaces
Problem:  User commands cannot handle single args with spaces
Solution: Add the -nargs=_ attribute (Maxim Kim)

-nargs=_ allow user commands to have a single argument with spaces.

For example given the following Test command and TestComplete function:

```
vim9script
def TestComplete(A: string, _: string, _: number): list<string>
    var all = ["qqqq", "aaaa", "qq aa"]
    return all->matchfuzzy(A)
enddef
command! -nargs=_ -complete=customlist,TestComplete Test echo <q-args>
```

`:Test q a<tab>` should successfully complete `qq aa`

fixes:  #20102
closes: #20189

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-05-17 17:58:15 +00:00
..
2026-02-14 15:19:10 +00:00
2026-03-31 15:20:08 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-05-04 19:10:37 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00