1
0
forked from aniani/vim

patch 8.2.4465: fuzzy completion does not order matches properly

Problem:    Fuzzy completion does not order matches properly.
Solution:   Do not use regular expression match. (Yegappan Lakshmanan,
            closes #9843)
This commit is contained in:
Yegappan Lakshmanan
2022-02-25 15:24:24 +00:00
committed by Bram Moolenaar
parent 4d56b971cb
commit 5ec633b9b0
4 changed files with 67 additions and 37 deletions

View File

@@ -5001,7 +5001,7 @@ fuzzy_match_func_sort(fuzmatch_str_T *fm, int sz)
fuzzy_match_str(char_u *str, char_u *pat)
{
int score = 0;
int_u matchpos[256];
int_u matchpos[MAX_FUZZY_MATCHES];
if (str == NULL || pat == NULL)
return 0;