summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-03-29 15:55:38 +0200
committerBram Moolenaar <Bram@vim.org>2018-03-29 15:55:38 +0200
commitcd43effecab02c6c28b1c4a3a14f91b8c3f26c0d (patch)
treec1ff349ca80fe49e0070b1366c4cfb5aad448590 /src/ex_cmds2.c
parent1b2f61e732a961c1345bf3bb6826c1caa870c10d (diff)
downloadvim-git-cd43effecab02c6c28b1c4a3a14f91b8c3f26c0d.tar.gz
patch 8.0.1649: no completion for argument list commandsv8.0.1649
Problem: No completion for argument list commands. Solution: Add arglist completion. (Yegappan Lakshmanan, closes #2706)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index ae4ce337d..d4ddb82b7 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -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}"