diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-04-10 18:09:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-10 18:09:06 +0100 |
commit | c6e0a5e98c07d898e829d62bd938b1cc1fd37e94 (patch) | |
tree | 30d7f2ba11a0532c7cc4fecbf0383d0fd02c058e /src/proto/search.pro | |
parent | db0ea7f2b00c84d84f188c9e9953c4f1887528e7 (diff) |
patch 8.2.4732: duplicate code to free fuzzy matchesv8.2.4732
Problem: Duplicate code to free fuzzy matches.
Solution: Bring back fuzmatch_str_free().
Diffstat (limited to 'src/proto/search.pro')
-rw-r--r-- | src/proto/search.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/search.pro b/src/proto/search.pro index 0548fcadd8..8fa01da9b9 100644 --- a/src/proto/search.pro +++ b/src/proto/search.pro @@ -41,5 +41,6 @@ int fuzzy_match(char_u *str, char_u *pat_arg, int matchseq, int *outScore, int_u void f_matchfuzzy(typval_T *argvars, typval_T *rettv); void f_matchfuzzypos(typval_T *argvars, typval_T *rettv); int fuzzy_match_str(char_u *str, char_u *pat); -int fuzzymatches_to_strmatches(fuzmatch_str_T *fuzmatch, char_u ***matches, int count, int funcsort); +void fuzmatch_str_free(fuzmatch_str_T *fuzmatch, int count); +int fuzzymatches_to_strmatches(fuzmatch_str_T *fuzmatch, char_u ***matches, int count, int funcsort); /* vim: set ft=c : */ |