diff options
Diffstat (limited to 'lib/parse')
-rw-r--r-- | lib/parse/ansi.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse/ansi.go b/lib/parse/ansi.go index 11424cc5..ff44f8ba 100644 --- a/lib/parse/ansi.go +++ b/lib/parse/ansi.go @@ -244,10 +244,10 @@ func (rb *RuneBuffer) ApplyAttrs(style tcell.Style) { fg, bg, attrs := style.Decompose() for _, sr := range rb.buf { srFg, srBg, srAttrs := sr.Style.Decompose() - if srFg == tcell.ColorDefault { + if fg != tcell.ColorDefault { srFg = fg } - if srBg == tcell.ColorDefault { + if bg != tcell.ColorDefault { srBg = bg } sr.Style = sr.Style.Attributes(attrs | srAttrs). |