Skip to content

Commit

Permalink
fix(keys): forward count to keymaps. Fixes #252
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 30, 2022
1 parent a59cd08 commit a834b30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazy/core/handler/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a834b30

Please sign in to comment.