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

@@ -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()