Fixed TextView's reset [-] setting the wrong color

This commit is contained in:
diamondburned (Forefront) 2019-06-07 04:38:19 -07:00 committed by Trevor Slocum
parent 384d842226
commit 3d7e978b90
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}