Skip to content
Snippets Groups Projects
Unverified Commit 3a2015ee authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix minimum preview window height

parent c440418c
No related branches found
No related tags found
No related merge requests found
......@@ -865,9 +865,13 @@ func (t *Terminal) resizeWindows() {
}
verticalPad := 2
minPreviewHeight := 3
if t.previewOpts.border == tui.BorderNone {
switch t.previewOpts.border {
case tui.BorderNone, tui.BorderVertical, tui.BorderLeft, tui.BorderRight:
verticalPad = 0
minPreviewHeight = 1
case tui.BorderTop, tui.BorderBottom:
verticalPad = 1
minPreviewHeight = 2
}
switch t.previewOpts.position {
case posUp:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment