diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-16 11:28:05 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-16 11:47:56 -0400 |
commit | 1dcdac013e4beea2a327e1fb98ac4627bbe174ec (patch) | |
tree | 4a430c1a18bc73ea9b5d3c28642cc4fae2d088a8 /src/nvim/ex_cmds2.c | |
parent | be552c8340615a4c9e670bc77df5e6016214d4f4 (diff) | |
download | rneovim-1dcdac013e4beea2a327e1fb98ac4627bbe174ec.tar.gz rneovim-1dcdac013e4beea2a327e1fb98ac4627bbe174ec.tar.bz2 rneovim-1dcdac013e4beea2a327e1fb98ac4627bbe174ec.zip |
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)
https://github.com/vim/vim/commit/cd43effecab02c6c28b1c4a3a14f91b8c3f26c0d
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 120278d3fb..c384d253b9 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -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) |