mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
[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:

committed by
Justin M. Keyes

parent
70ae6ac344
commit
23f591dba0
@@ -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) {
|
||||
|
Reference in New Issue
Block a user