1
0
forked from aniani/vim

patch 8.2.4122: ":command Cmd" does not show custom completion argument

Problem:    ":command Cmd" does not show custom completion argument.
Solution:   Show the completion argument when using ":verbose".
This commit is contained in:
Bram Moolenaar
2022-01-17 19:06:56 +00:00
parent 262898ae43
commit 3f3597be3f
3 changed files with 11 additions and 2 deletions

View File

@@ -589,10 +589,10 @@ func Test_command_list()
\ execute('command DoCmd'))
" Test output in verbose mode.
command! DoCmd :
command! -nargs=+ -complete=customlist,SomeFunc DoCmd :ls
call assert_match("^\n"
\ .. " Name Args Address Complete Definition\n"
\ .. " DoCmd 0 :\n"
\ .. " DoCmd + customlist,SomeFunc :ls\n"
\ .. "\tLast set from .*/test_usercommands.vim line \\d\\+$",
\ execute('verbose command DoCmd'))