diff options
| author | Felix Svensson <klowdo.fs@gmail.com> | 2026-03-24 16:38:31 +0100 |
|---|---|---|
| committer | Felix Svensson <klowdo.fs@gmail.com> | 2026-03-24 16:38:31 +0100 |
| commit | f2b428104851dae8bcfad73f2da604a07c0678ec (patch) | |
| tree | e3b5c14a81f0e6f37188b77488ae8699b1a3b02e /lua | |
| parent | 3d6eef405c8447b95cf07872f402fa835c24fd33 (diff) | |
| download | a4-f2b428104851dae8bcfad73f2da604a07c0678ec.tar.xz a4-f2b428104851dae8bcfad73f2da604a07c0678ec.zip | |
fix: append extra args after full command
Avoids breaking named options like GeminiCLI's --prompt flag.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/99/providers.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lua/99/providers.lua b/lua/99/providers.lua index 1ea9cda..7df0174 100644 --- a/lua/99/providers.lua +++ b/lua/99/providers.lua @@ -73,9 +73,7 @@ function BaseProvider:make_request(query, context, observer) local command = self:_build_command(query, context) local extra_args = context._99 and context._99.provider_extra_args or {} if #extra_args > 0 then - local query_arg = table.remove(command) vim.list_extend(command, extra_args) - table.insert(command, query_arg) end logger:debug("make_request", "command", command) |
