fix(pickers): display preview title at the same position as results title for bottom_pane layout (#2494)
This commit is contained in:
@@ -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