patch 9.1.1444: Unused assignment in set_fuzzy_score()
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>
diff --git a/src/insexpand.c b/src/insexpand.c
index ff8e87e..889ea36 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -1415,11 +1415,10 @@
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,