Add tests for #226

This commit is contained in:
hrsh7th
2021-10-25 23:11:59 +09:00
parent 880137f5e8
commit ea6dde8081
3 changed files with 11 additions and 1 deletions

View File

@@ -84,4 +84,13 @@ describe('keymap', function()
end)
end)
end)
describe('realworld', function()
it('#226', function()
keymap.listen('i', '<c-n>', function(_, fallback)
fallback()
end)
vim.api.nvim_feedkeys(keymap.t('iaiueo<CR>a<C-n><C-n>'), 'tx', true)
assert.are.same({ 'aiueo', 'aiueo' }, vim.api.nvim_buf_get_lines(0, 0, -1, true))
end)
end)
end)