Skip to content

Commit

Permalink
fix(repeat): no dot repeat inside macros. Fixes #143
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 12, 2023
1 parent a8da6ff commit f7218c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/flash/repeat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function M.setup()
end
M._did_setup = true
vim.on_key(function(key)
if key == "." then
if key == "." and vim.fn.reg_executing() == "" and vim.fn.reg_recording() == "" then
M.is_repeat = true
vim.schedule(function()
M.is_repeat = false
Expand Down

0 comments on commit f7218c2

Please sign in to comment.