fix(cmd): fix Error when trigger on range defined command that doesn't support count (#519)

This commit is contained in:
Yahir Eduardo Bravo Tafur 2023-02-09 12:02:40 -05:00 committed by GitHub
parent 2730814434
commit a147110390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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