From a1471103902a9836d88732eeeeabd11d00a2cb3e Mon Sep 17 00:00:00 2001 From: Yahir Eduardo Bravo Tafur Date: Thu, 9 Feb 2023 12:02:40 -0500 Subject: [PATCH] fix(cmd): fix Error when trigger on range defined command that doesn't support count (#519) --- lua/lazy/core/handler/cmd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/handler/cmd.lua b/lua/lazy/core/handler/cmd.lua index 142eda8..6ee52ad 100644 --- a/lua/lazy/core/handler/cmd.lua +++ b/lua/lazy/core/handler/cmd.lua @@ -19,7 +19,7 @@ function M:_add(cmd) bang = event.bang or nil, mods = event.smods, args = event.fargs, - count = event.count >= 0 and event.count or nil, + count = event.count >= 0 and event.range == 0 and event.count or nil, } if event.range == 1 then