]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1444: Unused assignment in set_fuzzy_score() v9.1.1444
authorzeertzjq <zeertzjq@outlook.com>
Mon, 9 Jun 2025 18:34:57 +0000 (20:34 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 9 Jun 2025 18:34:57 +0000 (20:34 +0200)
Problem:  Unused assignment in set_fuzzy_score() (after 9.1.1441).
Solution: Remove it (zeertzjq).

closes: #17472

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/insexpand.c
src/version.c

index ff8e87e4e9ec7c345950100d9a950d79842fa71b..889ea3611902ffeca20519a7a0e65df222183fdc 100644 (file)
@@ -1415,11 +1415,10 @@ cp_compare_nearest(const void* a, const void* b)
     static void
 set_fuzzy_score(void)
 {
-    compl_T     *compl = compl_first_match->cp_prev;
-
     if (compl_leader.string != NULL && compl_leader.length > 0)
     {
-       compl = compl_first_match;
+       compl_T *compl = compl_first_match;
+
        do
        {
            compl->cp_score = fuzzy_match_str(compl->cp_str.string,
index 491b51690e8077edc0f1573b10030e9ef83a305f..ec8c923a03de3038d61aefe3370c0b13e91bd5d1 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1444,
 /**/
     1443,
 /**/