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:
@@ -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
|
||||
|
Reference in New Issue
Block a user