commit | 5ec633b9b0400519db60253cb5846e50394218b4 | [log] [tgz] |
---|---|---|
author | Yegappan Lakshmanan <yegappan@yahoo.com> | Fri Feb 25 15:24:24 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Feb 25 15:24:24 2022 +0000 |
tree | 0e85ab2bd5fd660ccb24daf164ece05ac57fd081 | |
parent | 4d56b971cbae01cc454eb09713326224993e38ed [diff] [blame] |
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)
diff --git a/src/search.c b/src/search.c index 00a9fdf..063058d 100644 --- a/src/search.c +++ b/src/search.c
@@ -5001,7 +5001,7 @@ 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;