Skip to content

Commit 8c9fd22

Browse files
authored
fix(actions): set location list title (#2741)
1 parent 3a2579e commit 8c9fd22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/telescope/actions/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,11 +950,12 @@ local send_all_to_qf = function(prompt_bufnr, mode, target)
950950
actions.close(prompt_bufnr)
951951

952952
vim.api.nvim_exec_autocmds("QuickFixCmdPre", {})
953+
local qf_title = string.format([[%s (%s)]], picker.prompt_title, prompt)
953954
if target == "loclist" then
954955
vim.fn.setloclist(picker.original_win_id, qf_entries, mode)
956+
vim.fn.setloclist(picker.original_win_id, {}, "a", { title = qf_title })
955957
else
956958
vim.fn.setqflist(qf_entries, mode)
957-
local qf_title = string.format([[%s (%s)]], picker.prompt_title, prompt)
958959
vim.fn.setqflist({}, "a", { title = qf_title })
959960
end
960961
vim.api.nvim_exec_autocmds("QuickFixCmdPost", {})

0 commit comments

Comments
 (0)