mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
vim-patch:9.0.1242: code for :runtime completion is not consistent
Problem: Code for :runtime completion is not consistent.
Solution: Make code for cmdline expansion more consistent. (closes vim/vim#11875)
b0d45ec67f
This commit is contained in:
@@ -4824,12 +4824,12 @@ int ExpandSettings(expand_T *xp, regmatch_T *regmatch, char *fuzzystr, int *numM
|
||||
return OK;
|
||||
}
|
||||
|
||||
void ExpandOldSetting(int *num_file, char ***file)
|
||||
void ExpandOldSetting(int *numMatches, char ***matches)
|
||||
{
|
||||
char *var = NULL;
|
||||
|
||||
*num_file = 0;
|
||||
*file = xmalloc(sizeof(char_u *));
|
||||
*numMatches = 0;
|
||||
*matches = xmalloc(sizeof(char *));
|
||||
|
||||
// For a terminal key code expand_option_idx is < 0.
|
||||
if (expand_option_idx < 0) {
|
||||
@@ -4862,8 +4862,8 @@ void ExpandOldSetting(int *num_file, char ***file)
|
||||
}
|
||||
#endif
|
||||
|
||||
*file[0] = buf;
|
||||
*num_file = 1;
|
||||
*matches[0] = buf;
|
||||
*numMatches = 1;
|
||||
}
|
||||
|
||||
/// Get the value for the numeric or string option///opp in a nice format into
|
||||
|
Reference in New Issue
Block a user