fix(keys): forward count to keymaps. Fixes #252

This commit is contained in:
Folke Lemaitre 2022-12-30 20:51:13 +01:00
parent a59cd089dc
commit a834b30c70
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -25,6 +25,9 @@ function M.retrigger(keys)
pending = pending .. c
end
local feed = vim.api.nvim_replace_termcodes(keys, true, false, true) .. pending
if vim.v.count ~= 0 then
feed = vim.v.count .. feed
end
vim.api.nvim_feedkeys(feed, "m", false)
end