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:
committed by
Bram Moolenaar
parent
4d56b971cb
commit
5ec633b9b0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user