diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-03-29 15:55:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-03-29 15:55:38 +0200 |
commit | cd43effecab02c6c28b1c4a3a14f91b8c3f26c0d (patch) | |
tree | c1ff349ca80fe49e0070b1366c4cfb5aad448590 /src/ex_docmd.c | |
parent | 1b2f61e732a961c1345bf3bb6826c1caa870c10d (diff) |
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_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 97bbd04291..c2d69670b8 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -4293,6 +4293,13 @@ set_one_cmd_context( break; #endif + case CMD_argdelete: + while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) + arg = xp->xp_pattern + 1; + xp->xp_context = EXPAND_ARGLIST; + xp->xp_pattern = arg; + break; + #endif /* FEAT_CMDL_COMPL */ default: @@ -5879,6 +5886,7 @@ static struct char *name; } command_complete[] = { + {EXPAND_ARGLIST, "arglist"}, {EXPAND_AUGROUP, "augroup"}, {EXPAND_BEHAVE, "behave"}, {EXPAND_BUFFERS, "buffer"}, |