Don't use indentchar style if disabled

Fixes #990
This commit is contained in:
Zachary Yedidia
2018-01-14 11:23:30 -08:00
parent 7e3aa337f6
commit 1cf4baa743

View File

@@ -161,7 +161,8 @@ func (c *CellView) Draw(buf *Buffer, top, height, left, width int) {
c.lines[viewLine][viewCol].width = charWidth
indentStyle := curStyle
if group, ok := colorscheme["indent-char"]; ok {
ch := buf.Settings["indentchar"].(string)
if group, ok := colorscheme["indent-char"]; ok && !IsStrWhitespace(ch) && ch != "" {
indentStyle = group
}