Skip to content

Commit 9cbc693

Browse files
committed
fix: other plugin's feedkeys
1 parent 7619e1e commit 9cbc693

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/better_escape.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ local function record_key(key)
7272
end)
7373
end
7474

75-
vim.on_key(function()
75+
vim.on_key(function(mapping, typed)
76+
if typed == "" then
77+
return
78+
end
7679
if has_recorded == false then
7780
-- If the user presses a key that doesn't get recorded, remove the previously recorded key.
7881
recorded_key = nil

0 commit comments

Comments
 (0)