mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function M:_add(cmd)
|
||||||
bang = event.bang or nil,
|
bang = event.bang or nil,
|
||||||
mods = event.smods,
|
mods = event.smods,
|
||||||
args = event.fargs,
|
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
|
if event.range == 1 then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue