mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-04 03:36:04 +00:00
fix(pickers): display preview title at the same position as results title for bottom_pane layout (#2494)
(cherry picked from commit d5bef7c52d)
This commit is contained in:
committed by
Simon Hauser
parent
7bcbbb853d
commit
9b4a1a20c2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user