Skip to content

Commit

Permalink
fix: other plugin's feedkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-programs committed Jul 12, 2024
1 parent 7619e1e commit 9cbc693
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/better_escape.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ local function record_key(key)
end)
end

vim.on_key(function()
vim.on_key(function(mapping, typed)
if typed == "" then
return
end
if has_recorded == false then
-- If the user presses a key that doesn't get recorded, remove the previously recorded key.
recorded_key = nil
Expand Down

0 comments on commit 9cbc693

Please sign in to comment.