Skip to content

Commit

Permalink
fix(keys): make operator pending mode work. Fixes #286
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 3, 2023
1 parent 299ffdf commit cdb998c
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 @@ -24,6 +24,9 @@ function M.retrigger(keys)
c = type(c) == "number" and vim.fn.nr2char(c) or c
pending = pending .. c
end
if op and op ~= "" then
keys = "<esc>" .. op .. keys
end
local feed = vim.api.nvim_replace_termcodes(keys, true, false, true) .. pending
if vim.v.count ~= 0 then
feed = vim.v.count .. feed
Expand Down

0 comments on commit cdb998c

Please sign in to comment.