This commit is contained in:
hrsh7th
2022-01-20 17:26:05 +09:00
parent 7a1e484806
commit 1797f9e1ac
2 changed files with 2 additions and 3 deletions

View File

@@ -342,7 +342,7 @@ entry.match = function(self, input)
return self.match_cache:ensure({ input, self.resolved_completion_item and 1 or 0 }, function()
local filter_text = self:get_filter_text()
local score, matches
local score, matches, _
score, matches = matcher.match(input, filter_text, { self:get_word(), self:get_completion_item().label })
-- Support the language server that doesn't respect VSCode's behaviors.

View File

@@ -83,14 +83,13 @@ describe('keymap', function()
silent = true,
callback = function()
return keymap.t('()<Left>')
end
end,
})
local fallback = keymap.fallback(0, 'i', keymap.get_map('i', '('))
local state = keys('i' .. fallback.keys, fallback.noremap and 'n' or 'm')
assert.are.same({ '()' }, state.buffer)
assert.are.same({ 1, 1 }, state.cursor)
end)
end)
describe('realworld', function()