From f7218c2d44a8d67c5c4b40edd569c55f95754354 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 12 Jul 2023 18:18:15 +0200 Subject: [PATCH] fix(repeat): no dot repeat inside macros. Fixes #143 --- lua/flash/repeat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/flash/repeat.lua b/lua/flash/repeat.lua index 08cd120..82a7c61 100644 --- a/lua/flash/repeat.lua +++ b/lua/flash/repeat.lua @@ -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