[RFC] vim-patch:7.4.2011, vim-patch:7.4.2012, vim-patch:7.4.2066 #5106

vim-patch:7.4.2011

Problem:    It is not easy to get a list of command arguments.
Solution:   Add getcompletion(). (Yegappan Lakshmanan)

aa4d73235b

vim-patch:7.4.2012

Problem:    Test for getcompletion() does not pass on all systems.
Solution:   Only test what is supported.

0d3e24be56

vim-patch:7.4.2066

Problem:    getcompletion() not well tested.
Solution:   Add more testing.

c1fb763184
This commit is contained in:
Shougo Matsushita
2016-07-23 11:33:38 +09:00
committed by Justin M. Keyes
parent 70ae6ac344
commit 23f591dba0
6 changed files with 224 additions and 3 deletions

View File

@@ -5597,6 +5597,17 @@ int parse_compl_arg(char_u *value, int vallen, int *complp,
return OK;
}
int cmdcomplete_str_to_type(char_u *complete_str)
{
for (int 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;
}
static void ex_colorscheme(exarg_T *eap)
{
if (*eap->arg == NUL) {