Problem: ":command Cmd" does not show custom completion argument.
Solution: Show the completion argument when using ":verbose".
\ 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'))
{
STRCPY(IObuff + len, command_complete[j].name);
len += (int)STRLEN(IObuff + len);
+ if (p_verbose > 0 && cmd->uc_compl_arg != NULL
+ && STRLEN(cmd->uc_compl_arg) < 200)
+ {
+ IObuff[len] = ',';
+ STRCPY(IObuff + len + 1, cmd->uc_compl_arg);
+ len += (int)STRLEN(IObuff + len);
+ }
break;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4122,
/**/
4121,
/**/