Use default foreground for empty indent chars

Fixes #403
This commit is contained in:
Zachary Yedidia
2016-10-10 18:40:21 -04:00
parent 6acda994e4
commit 104699e500

View File

@@ -753,7 +753,7 @@ func (v *View) DisplayView() {
// First the user may have configured an `indent-char` to be displayed to show that this
// is a tab character
lineIndentStyle := defStyle
if style, ok := colorscheme["indent-char"]; ok {
if style, ok := colorscheme["indent-char"]; ok && v.Buf.Settings["indentchar"].(string) != " " {
lineIndentStyle = style
}
if v.Cursor.HasSelection() &&