diff options
author | Javier Lopez <graulopezjavier@gmail.com> | 2022-08-21 08:19:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 15:19:29 +0200 |
commit | dde90f0ca4e394667afe39c18f4a4dabdd8a6666 (patch) | |
tree | 47a8e51fe02f013c15157cb87ae18bcdb15c5141 /test/functional/vimscript/json_functions_spec.lua | |
parent | 5928d5c2f11754e1d2cc383a1568c3664a38207d (diff) | |
download | rneovim-dde90f0ca4e394667afe39c18f4a4dabdd8a6666.tar.gz rneovim-dde90f0ca4e394667afe39c18f4a4dabdd8a6666.tar.bz2 rneovim-dde90f0ca4e394667afe39c18f4a4dabdd8a6666.zip |
fix(api/command): fargs behavior when no arguments are passed (#19862)
Problem: A command defined with `nargs="?"` returns `fargs={""}` to
a Lua callback when executed with no arguments, which is inconsistent
with how`nargs="*"` behaves.
Solution: Pass `fargs={}` for no argument with `nargs="?"` as well.
Diffstat (limited to 'test/functional/vimscript/json_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions