Skip to content

Commit de1c7ac

Browse files
zeertzjqchrisbra
authored andcommitted
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]>
1 parent 82a96e3 commit de1c7ac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/insexpand.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,11 +1415,10 @@ cp_compare_nearest(const void* a, const void* b)
14151415
static void
14161416
set_fuzzy_score(void)
14171417
{
1418-
compl_T *compl = compl_first_match->cp_prev;
1419-
14201418
if (compl_leader.string != NULL && compl_leader.length > 0)
14211419
{
1422-
compl = compl_first_match;
1420+
compl_T *compl = compl_first_match;
1421+
14231422
do
14241423
{
14251424
compl->cp_score = fuzzy_match_str(compl->cp_str.string,

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ static char *(features[]) =
709709

710710
static int included_patches[] =
711711
{ /* Add new patch number below this line */
712+
/**/
713+
1444,
712714
/**/
713715
1443,
714716
/**/

0 commit comments

Comments
 (0)