Use instead of

This commit is contained in:
hrsh7th
2021-10-11 00:43:14 +09:00
parent 67d43ddd59
commit d8e6a865e4
5 changed files with 20 additions and 7 deletions

View File

@@ -345,7 +345,7 @@ end
---@return { score: number, matches: table[] }
entry.match = function(self, input)
return self.match_cache:ensure(input, function()
local score, matches
local score, matches, _
score, matches = matcher.match(input, self:get_filter_text(), { self:get_word() })
if self:get_filter_text() ~= self:get_completion_item().label then
_, matches = matcher.match(input, self:get_completion_item().label)