0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.2011

Problem:    It is not easy to get a list of command arguments.
Solution:   Add getcompletion(). (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar
2016-07-09 18:50:29 +02:00
parent 537ef08408
commit aa4d73235b
6 changed files with 130 additions and 0 deletions

View File

@@ -7049,6 +7049,18 @@ parse_compl_arg(
# endif
return OK;
}
int
cmdcomplete_str_to_type(char_u *complete_str)
{
int i;
for (i = 0; command_complete[i].expand != 0; ++i)
if (STRCMP(complete_str, command_complete[i].name) == 0)
return command_complete[i].expand;
return EXPAND_NOTHING;
}
#endif
static void