Skip to content

Commit bcfbbc2

Browse files
authored
fix(prompt): use correct variable in select_prompt (#1555)
Replaces usage of the undefined 'prompts' variable with 'prompt_list' in the select_prompt function. This ensures the correct prompt data is used when invoking the ask method, preventing potential runtime errors. Closes #1554
1 parent ed28b01 commit bcfbbc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/CopilotChat/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ function M.select_prompt(config)
378378
end,
379379
}, function(choice)
380380
if choice then
381-
M.ask(prompts[choice.name].prompt, vim.tbl_extend('force', prompts[choice.name], config or {}))
381+
M.ask(prompt_list[choice.name].prompt, vim.tbl_extend('force', prompt_list[choice.name], config or {}))
382382
end
383383
end)
384384
end

0 commit comments

Comments
 (0)