0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4917: fuzzy expansion of option names is not right

Problem:    Fuzzy expansion of option names is not right.
Solution:   Pass the fuzzy flag down the call chain. (Christian Brabandt,
            closes #10380, closes #10318)
This commit is contained in:
Christian Brabandt
2022-05-08 21:10:56 +01:00
committed by Bram Moolenaar
parent 8e8dc9b323
commit cb747899bd
5 changed files with 29 additions and 4 deletions

View File

@@ -6511,7 +6511,8 @@ ExpandSettings(
regmatch_T *regmatch,
char_u *fuzzystr,
int *numMatches,
char_u ***matches)
char_u ***matches,
int can_fuzzy)
{
int num_normal = 0; // Nr of matching non-term-code settings
int num_term = 0; // Nr of matching terminal code settings
@@ -6527,7 +6528,7 @@ ExpandSettings(
int fuzzy;
fuzmatch_str_T *fuzmatch = NULL;
fuzzy = cmdline_fuzzy_complete(fuzzystr);
fuzzy = can_fuzzy && cmdline_fuzzy_complete(fuzzystr);
// do this loop twice:
// loop == 0: count the number of matching options