Skip to content

Commit

Permalink
Merge pull request #86 from Sam-programs/fix_feedkeys
Browse files Browse the repository at this point in the history
fix: other plugin's feedkeys
  • Loading branch information
max397574 authored Jul 12, 2024
2 parents 7619e1e + 672ecf4 commit 6201533
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(_, 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 6201533

Please sign in to comment.