diff options
| author | glepnir <glephunter@gmail.com> | 2025-06-09 21:50:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 06:50:26 -0700 |
| commit | 76d0206342a2255fecf035b3d74253632b8cb86d (patch) | |
| tree | edd91f914ac9ffc34db422f1a37bc09dee5a0259 /runtime/lua/vim/provider/python.lua | |
| parent | 6f632a8615e03847b05051f0783a768b81a30c3e (diff) | |
| download | rneovim-76d0206342a2255fecf035b3d74253632b8cb86d.tar.gz rneovim-76d0206342a2255fecf035b3d74253632b8cb86d.tar.bz2 rneovim-76d0206342a2255fecf035b3d74253632b8cb86d.zip | |
fix(api): count parameter in nvim_parse_cmd, nvim_cmd #34253
Problem:
- nvim_parse_cmd('copen', {}) returns count: 0, causing nvim_cmd to override default behavior
- nvim_cmd({cmd = 'copen', args = {10}}, {}) fails with "Wrong number of arguments"
Solution:
- Only include count field in parse result when explicitly provided or non-zero
- Interpret single numeric argument as count for count-only commands like copen
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions