0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

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

@@ -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"},