diff --git a/lua/cmp/matcher.lua b/lua/cmp/matcher.lua index 26b3d1f..48bf96a 100644 --- a/lua/cmp/matcher.lua +++ b/lua/cmp/matcher.lua @@ -257,7 +257,7 @@ matcher.fuzzy = function(input, word, matches, option) word_offset = word_offset + 1 end - if input_index > #input then + if matched and input_index > #input then table.insert(matches, { input_match_start = input_match_start, input_match_end = input_match_end,