mirror of https://github.com/folke/lazy.nvim.git
fix(cmd): fix Error when trigger on range defined command that doesn't support count (#519)
This commit is contained in:
parent
2730814434
commit
a147110390
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue