mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-15 23:03:47 -05:00
Fix --preview-window noborder with non-default background color
This commit is contained in:
@@ -624,9 +624,9 @@ func (t *Terminal) resizeWindows() {
|
||||
noBorder := tui.MakeBorderStyle(tui.BorderNone, t.unicode)
|
||||
if previewVisible {
|
||||
createPreviewWindow := func(y int, x int, w int, h int) {
|
||||
previewBorder := noBorder
|
||||
if t.preview.border {
|
||||
previewBorder = tui.MakeBorderStyle(tui.BorderAround, t.unicode)
|
||||
previewBorder := tui.MakeBorderStyle(tui.BorderAround, t.unicode)
|
||||
if !t.preview.border {
|
||||
previewBorder = tui.MakeTransparentBorder()
|
||||
}
|
||||
t.pborder = t.tui.NewWindow(y, x, w, h, previewBorder)
|
||||
pwidth := w - 4
|
||||
|
||||
Reference in New Issue
Block a user