aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-15 22:06:29 +0800
committerGitHub <noreply@github.com>2024-06-15 22:06:29 +0800
commitfc6477002c2990199bf104c53def266c69352596 (patch)
treef16b178110bc4f34c4b89b7edfd28935ea787cb6 /src
parentfd2ef4edf9cc1461edaf9f7ce34711d9b40a7fb8 (diff)
downloadrneovim-fc6477002c2990199bf104c53def266c69352596.tar.gz
rneovim-fc6477002c2990199bf104c53def266c69352596.tar.bz2
rneovim-fc6477002c2990199bf104c53def266c69352596.zip
vim-patch:9.1.0490: minor style problems with patch 9.1.0487 (#29354)
Problem: minor style problems with patch 9.1.0487 Solution: use shown_compl instead of after_first_compl variable (glepnir) closes: vim/vim#15008 fix(completion): use exist shown_compl instead after_first_compl https://github.com/vim/vim/commit/105f741fac1b3242909c3c69384f00e4dcd9356e Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/insexpand.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
index 04e4a59f54..1eb6402e6c 100644
--- a/src/nvim/insexpand.c
+++ b/src/nvim/insexpand.c
@@ -1162,7 +1162,6 @@ static int ins_compl_build_pum(void)
// Need to build the popup menu list.
compl_match_arraysize = 0;
compl_T *comp = compl_first_match;
- compl_T *after_first_compl = NULL;
// If it's user complete function and refresh_always,
// do not use "compl_leader" as prefix filter.
@@ -1232,7 +1231,7 @@ static int ins_compl_build_pum(void)
cur = i;
} else if (compl_fuzzy_match) {
if (i == 0) {
- after_first_compl = comp;
+ shown_compl = comp;
}
// Update the maximum fuzzy score and the shown match
// if the current item's score is higher
@@ -1253,7 +1252,7 @@ static int 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;
}
}
}