1
0
forked from aniani/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 #2706)
This commit is contained in:
Bram Moolenaar
2018-03-29 15:55:38 +02:00
parent 1b2f61e732
commit cd43effeca
9 changed files with 35 additions and 0 deletions

View File

@@ -3314,6 +3314,21 @@ alist_add_list(
#endif /* FEAT_LISTCMDS */
#if defined(FEAT_CMDL_COMPL) || defined(PROTO)
/*
* Function given to ExpandGeneric() to obtain the possible arguments of the
* argedit and argdelete commands.
*/
char_u *
get_arglist_name(expand_T *xp UNUSED, int idx)
{
if (idx >= ARGCOUNT)
return NULL;
return alist_name(&ARGLIST[idx]);
}
#endif
#ifdef FEAT_EVAL
/*
* ":compiler[!] {name}"