Fill background color in padding area

fzf --color bg:blue --border --padding 1,2
This commit is contained in:
Junegunn Choi 2024-07-01 21:39:09 +09:00
parent 8db65704b9
commit 2faffbd1b7
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -794,6 +794,9 @@ func (r *LightRenderer) NewWindow(top int, left int, width int, height int, prev
w.fg = r.theme.Fg.Color
w.bg = r.theme.Bg.Color
}
if !w.bg.IsDefault() && w.border.shape != BorderNone {
w.Erase()
}
w.drawBorder(false)
return w
}