Mercurial > vim
changeset 35425:a65f00273798 v9.1.0490
patch 9.1.0490: minor style problems with patch 9.1.0487
Commit: https://github.com/vim/vim/commit/105f741fac1b3242909c3c69384f00e4dcd9356e
Author: glepnir <glephunter@gmail.com>
Date: Sat Jun 15 15:32:22 2024 +0200
patch 9.1.0490: minor style problems with patch 9.1.0487
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
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 15 Jun 2024 15:45:03 +0200 |
parents | 1c6bbf1be5c7 |
children | d12077aaf820 |
files | src/insexpand.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/insexpand.c +++ b/src/insexpand.c @@ -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; @@ -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) @@ -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; } }