diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-20 23:09:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 23:09:10 +0200 |
commit | 0839c442574cc6f272bee53d350c0d155b74894a (patch) | |
tree | 80665a9e1da995bde71fce9a098ca406b2f2bbd8 /src/nvim/ex_cmds2.c | |
parent | 751c35d41b9ead471518938aeddbc98f0def65f2 (diff) | |
parent | 89fec12e9f7e5f1ecc28ff0551fac3d2cb8267d2 (diff) | |
download | rneovim-0839c442574cc6f272bee53d350c0d155b74894a.tar.gz rneovim-0839c442574cc6f272bee53d350c0d155b74894a.tar.bz2 rneovim-0839c442574cc6f272bee53d350c0d155b74894a.zip |
Merge #8866 from janlazo/vim-8.0.0878
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) |