forked from tslocum/cview
Fixed TextView's reset [-] setting the wrong color
This commit is contained in:
parent
384d842226
commit
3d7e978b90
2
util.go
2
util.go
|
@ -126,7 +126,7 @@ func overlayStyle(background tcell.Color, defaultStyle tcell.Style, fgColor, bgC
|
|||
style := defaultStyle.Background(background)
|
||||
|
||||
style = style.Foreground(defFg)
|
||||
if fgColor != "" {
|
||||
if fgColor != "" && fgColor != "-" {
|
||||
style = style.Foreground(tcell.GetColor(fgColor))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue