fix(pickers): display preview title at the same position as results title for bottom_pane layout (#2494)

This commit is contained in:
Hoang Nguyen
2023-05-14 19:45:36 +00:00
committed by GitHub
parent 40dc952352
commit d5bef7c52d

View File

@@ -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