Skip to content

Commit

Permalink
fix(pickers): display preview title at the same position as results t…
Browse files Browse the repository at this point in the history
…itle for bottom_pane layout (#2494)

(cherry picked from commit d5bef7c)
  • Loading branch information
folliehiyuki authored and Conni2461 committed May 14, 2023
1 parent 7bcbbb8 commit 9b4a1a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/telescope/pickers/layout_strategies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,9 @@ layout_strategies.bottom_pane = make_documented_layout(
if type(results.title) == "string" then
results.title = { { pos = "S", text = results.title } }
end
if type(preview.title) == "string" then
preview.title = { { pos = "S", text = preview.title } }
end
elseif layout_config.prompt_position == "bottom" then
results.line = max_lines - results.height - (1 + bs) + 1
preview.line = results.line
Expand Down

0 comments on commit 9b4a1a2

Please sign in to comment.