summaryrefslogtreecommitdiff
path: root/plugin/vim-ai.vim
diff options
context:
space:
mode:
authorKonfekt <Konfekt@users.noreply.github.com>2024-03-08 10:22:51 +0100
committerKonfekt <Konfekt@users.noreply.github.com>2024-03-08 10:23:12 +0100
commitf4e64b6e5fe17734f8942207b86eb30d6cd6248c (patch)
treee7acbbba928239850ff2401f0dd0ae8f2d283826 /plugin/vim-ai.vim
parente0e03cf9ca218cd3f8f9afe0a219aca7470fa4f5 (diff)
downloadvim-ai-f4e64b6e5fe17734f8942207b86eb30d6cd6248c.tar.gz
Fix incorrect argument type passed in AINewChat command
The vim-ai plugin had an issue where the AINewChat command was using <q-args> to always pass a quoted (possibly empty!) argument to the vim_ai#AINewChatRun function where an optional <f-args> agument was expected. Addresses https://github.com/madox2/vim-ai/issues/81
Diffstat (limited to 'plugin/vim-ai.vim')
-rw-r--r--plugin/vim-ai.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/vim-ai.vim b/plugin/vim-ai.vim
index 5d156c3..0e4957f 100644
--- a/plugin/vim-ai.vim
+++ b/plugin/vim-ai.vim
@@ -18,5 +18,5 @@ command! -range -nargs=? AIEdit <line1>,<line2>call vim_ai#AIEditRun({}, <q
" AIChat defaults to passing nothing which is achieved by -range=0 and passing
" <count> as described at https://stackoverflow.com/a/20133772
command! -range=0 -nargs=? AIChat <line1>,<line2>call vim_ai#AIChatRun(<count>, {}, <q-args>)
-command! -nargs=? AINewChat call vim_ai#AINewChatRun(<q-args>)
+command! -nargs=? AINewChat call vim_ai#AINewChatRun(<f-args>)
command! AIRedo call vim_ai#AIRedoRun()