vim-patch:8.0.1649: no completion for argument list commands

Problem:    No completion for argument list commands.
Solution:   Add arglist completion. (Yegappan Lakshmanan, closes vim/vim#2706)
cd43effeca
This commit is contained in:
Jan Edmund Lazo
2018-08-16 11:28:05 -04:00
parent be552c8340
commit 1dcdac013e
7 changed files with 26 additions and 0 deletions

View File

@@ -2254,6 +2254,15 @@ static int alist_add_list(int count, char_u **files, int after)
}
}
// Function given to ExpandGeneric() to obtain the possible arguments of the
// argedit and argdelete commands.
char_u *get_arglist_name(expand_T *xp FUNC_ATTR_UNUSED, int idx)
{
if (idx >= ARGCOUNT) {
return NULL;
}
return alist_name(&ARGLIST[idx]);
}
/// ":compiler[!] {name}"
void ex_compiler(exarg_T *eap)