aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}
}
}