Skip to content

Commit

Permalink
patch 9.1.0490: minor style problems with patch 9.1.0487
Browse files Browse the repository at this point in the history
Problem:  minor style problems with patch 9.1.0487
Solution: use shown_compl instead of after_first_compl variable
          (glepnir)

closes: #15008

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
fix(completion): use exist shown_compl instead after_first_compl
  • Loading branch information
glepnir authored and chrisbra committed Jun 15, 2024
1 parent aced8c2 commit 105f741
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/insexpand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,6 @@ ins_compl_build_pum(void)
{
compl_T *compl;
compl_T *shown_compl = NULL;
compl_T *after_first_compl = NULL;
int did_find_shown_match = FALSE;
int shown_match_ok = FALSE;
int i;
Expand Down Expand Up @@ -1300,7 +1299,7 @@ ins_compl_build_pum(void)
else if (compl_fuzzy_match)
{
if (i == 0)
after_first_compl = compl;
shown_compl = compl;
// Update the maximum fuzzy score and the shown match
// if the current item's score is higher
if (compl->cp_score > max_fuzzy_score)
Expand All @@ -1322,7 +1321,7 @@ ins_compl_build_pum(void)
shown_match_ok = TRUE;
cur = 0;
if (match_at_original_text(compl_shown_match))
compl_shown_match = after_first_compl;
compl_shown_match = shown_compl;
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
490,
/**/
489,
/**/
Expand Down

0 comments on commit 105f741

Please sign in to comment.