We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2ecc8 commit 46280a1Copy full SHA for 46280a1
lua/lazy/core/handler/keys.lua
@@ -16,13 +16,15 @@ local M = {}
16
function M.retrigger(keys)
17
local pending = ""
18
while true do
19
+ ---@type number|string
20
local c = vim.fn.getchar(0)
21
if c == 0 then
22
break
23
end
- pending = pending .. vim.fn.nr2char(c)
24
+ c = type(c) == "number" and vim.fn.nr2char(c) or c
25
+ pending = pending .. c
26
- local feed = vim.api.nvim_replace_termcodes(keys .. pending, true, true, true)
27
+ local feed = vim.api.nvim_replace_termcodes(keys, true, false, true) .. pending
28
vim.api.nvim_feedkeys(feed, "m", false)
29
30
0 commit comments