fix: bottom_pane remove results border next to prompt (#1563)
This commit is contained in:
@@ -838,6 +838,12 @@ layout_strategies.bottom_pane = make_documented_layout(
|
|||||||
prompt.line = max_lines - results.height - (1 + bs) + 1
|
prompt.line = max_lines - results.height - (1 + bs) + 1
|
||||||
results.line = prompt.line + 1
|
results.line = prompt.line + 1
|
||||||
preview.line = results.line + bs
|
preview.line = results.line + bs
|
||||||
|
if results.border == true then
|
||||||
|
results.border = { 0, 1, 1, 1 }
|
||||||
|
end
|
||||||
|
if type(results.title) == "string" then
|
||||||
|
results.title = { { pos = "S", text = results.title } }
|
||||||
|
end
|
||||||
elseif layout_config.prompt_position == "bottom" then
|
elseif layout_config.prompt_position == "bottom" then
|
||||||
results.line = max_lines - results.height - (1 + bs) + 1
|
results.line = max_lines - results.height - (1 + bs) + 1
|
||||||
preview.line = results.line
|
preview.line = results.line
|
||||||
@@ -845,6 +851,9 @@ layout_strategies.bottom_pane = make_documented_layout(
|
|||||||
if type(prompt.title) == "string" then
|
if type(prompt.title) == "string" then
|
||||||
prompt.title = { { pos = "S", text = prompt.title } }
|
prompt.title = { { pos = "S", text = prompt.title } }
|
||||||
end
|
end
|
||||||
|
if results.border == true then
|
||||||
|
results.border = { 1, 1, 0, 1 }
|
||||||
|
end
|
||||||
else
|
else
|
||||||
error("Unknown prompt_position: " .. tostring(self.window.prompt_position) .. "\n" .. vim.inspect(layout_config))
|
error("Unknown prompt_position: " .. tostring(self.window.prompt_position) .. "\n" .. vim.inspect(layout_config))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user