From f4e64b6e5fe17734f8942207b86eb30d6cd6248c Mon Sep 17 00:00:00 2001 From: Konfekt Date: Fri, 8 Mar 2024 10:22:51 +0100 Subject: Fix incorrect argument type passed in AINewChat command The vim-ai plugin had an issue where the AINewChat command was using to always pass a quoted (possibly empty!) argument to the vim_ai#AINewChatRun function where an optional agument was expected. Addresses https://github.com/madox2/vim-ai/issues/81 --- plugin/vim-ai.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ,call vim_ai#AIEditRun({}, as described at https://stackoverflow.com/a/20133772 command! -range=0 -nargs=? AIChat ,call vim_ai#AIChatRun(, {}, ) -command! -nargs=? AINewChat call vim_ai#AINewChatRun() +command! -nargs=? AINewChat call vim_ai#AINewChatRun() command! AIRedo call vim_ai#AIRedoRun() -- cgit v1.2.3