summaryrefslogtreecommitdiff
path: root/lua/telescope
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope')
-rw-r--r--lua/telescope/actions/generate.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/actions/generate.lua b/lua/telescope/actions/generate.lua
index 93a7727..4d33f9f 100644
--- a/lua/telescope/actions/generate.lua
+++ b/lua/telescope/actions/generate.lua
@@ -75,11 +75,11 @@ action_generate.refine = function(prompt_bufnr, opts)
end
-- title
- if opts.prompt_title then
+ if opts.prompt_title and current_picker.prompt_border then
current_picker.prompt_border:change_title(opts.prompt_title)
end
- if opts.results_title then
+ if opts.results_title and current_picker.results_border then
current_picker.results_border:change_title(opts.results_title)
end