aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-26 12:17:51 +0800
committerGitHub <noreply@github.com>2023-01-26 12:17:51 +0800
commita0a112515923206b640f0056a8282386b5514978 (patch)
treef25bc50ff763a3d31cbd43a528b1e391720ac136 /src/nvim/option.c
parent5ac34cf55db2b00c044fa95f75766dd89dd36ba9 (diff)
parent62f09017e09b7dc7bc837b0b13d9f1598685be46 (diff)
downloadrneovim-a0a112515923206b640f0056a8282386b5514978.tar.gz
rneovim-a0a112515923206b640f0056a8282386b5514978.tar.bz2
rneovim-a0a112515923206b640f0056a8282386b5514978.zip
Merge pull request #22002 from zeertzjq/vim-9.0.1227
vim-patch:9.0.{1227,1231,1238,1242}: cmdline completion for :runtime
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c10
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