diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-26 10:53:32 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-01-26 11:55:34 +0800 |
commit | ebc80dcded59b3b9de147091395f7570066fb00c (patch) | |
tree | 2f68a5b2fcecb06d145b1ce91511e6e0c00c0dad /src/nvim/option.c | |
parent | f03f6263bb3eb0b28b759292cb6ef4465a05cafe (diff) | |
download | rneovim-ebc80dcded59b3b9de147091395f7570066fb00c.tar.gz rneovim-ebc80dcded59b3b9de147091395f7570066fb00c.tar.bz2 rneovim-ebc80dcded59b3b9de147091395f7570066fb00c.zip |
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)
https://github.com/vim/vim/commit/b0d45ec67f4976318f199a7929ad3bcf93686fd0
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 01a5c7677f..ce76b99f8c 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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 |