patch 9.1.1444: Unused assignment in set_fuzzy_score()
Commit:
https://github.com/vim/vim/commit/de1c7ac432aeade45eaf08527bffc4aedb44a169
Author: zeertzjq <[email protected]>
Date: Mon Jun 9 20:34:57 2025 +0200
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/insexpand.c b/src/insexpand.c
index ff8e87e4e..889ea3611 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -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,
diff --git a/src/version.c b/src/version.c
index 491b51690..ec8c923a0 100644
--- a/src/version.c
+++ b/src/version.c
@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1444,
/**/
1443,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uOhUW-009qlq-Tn%40256bit.org.