Skip to content

Commit

Permalink
fix(cmd): fix Error when trigger on range defined command that doesn'…
Browse files Browse the repository at this point in the history
…t support count (#519)
  • Loading branch information
yebt committed Feb 9, 2023
1 parent 2730814 commit a147110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/handler/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a147110

Please sign in to comment.