mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-02-13 17:38:54 +00:00
Use default bg color when fg is set to -1 with reverse attribute
This commit is contained in:
parent
c144c95cda
commit
15d351b0f0
@ -554,6 +554,9 @@ func initTheme(theme *ColorTheme, baseTheme *ColorTheme, forceBlack bool) {
|
||||
|
||||
func initPalette(theme *ColorTheme) {
|
||||
pair := func(fg, bg ColorAttr) ColorPair {
|
||||
if fg.Color == colDefault && (fg.Attr&Reverse) > 0 {
|
||||
bg.Color = colDefault
|
||||
}
|
||||
return ColorPair{fg.Color, bg.Color, fg.Attr}
|
||||
}
|
||||
blank := theme.Fg
|
||||
|
Loading…
x
Reference in New Issue
Block a user