diff src/search.c @ 27879:76e2115dddb8 v8.2.4465

patch 8.2.4465: fuzzy completion does not order matches properly Commit: https://github.com/vim/vim/commit/5ec633b9b0400519db60253cb5846e50394218b4 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Fri Feb 25 15:24:24 2022 +0000 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)
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Feb 2022 16:30:07 +0100
parents ae38d2e81fca
children 099c2e612827
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -5001,7 +5001,7 @@ fuzzy_match_func_sort(fuzmatch_str_T *fm
 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;