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 (nvim-telescope#2494)
  • Loading branch information
folliehiyuki authored and abelmul committed Jun 6, 2023
1 parent 81c66b9 commit 1106596
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 1106596

Please sign in to comment.