diff options
Diffstat (limited to 'src/terminal.go')
-rw-r--r-- | src/terminal.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go index 0b812ccc..13b932e5 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -624,7 +624,11 @@ func (t *Terminal) resizeWindows() { noBorder := tui.MakeBorderStyle(tui.BorderNone, t.unicode) if previewVisible { createPreviewWindow := func(y int, x int, w int, h int) { - t.pborder = t.tui.NewWindow(y, x, w, h, tui.MakeBorderStyle(tui.BorderAround, t.unicode)) + previewBorder := noBorder + if t.preview.border { + previewBorder = tui.MakeBorderStyle(tui.BorderAround, t.unicode) + } + t.pborder = t.tui.NewWindow(y, x, w, h, previewBorder) pwidth := w - 4 // ncurses auto-wraps the line when the cursor reaches the right-end of // the window. To prevent unintended line-wraps, we use the width one |