Add missing parens on indent guide check

Previously the indent guide was always showing on the whitespace only lines

Closes #2274
This commit is contained in:
Kevin Sawicki
2014-05-19 08:52:06 -07:00
parent e643fe7e7d
commit 314833bbac
2 changed files with 8 additions and 1 deletions

View File

@@ -1490,7 +1490,7 @@ class EditorView extends View
position = 0
for token in tokens
@updateScopeStack(line, scopeStack, token.scopes)
hasIndentGuide = not mini and showIndentGuide and token.hasLeadingWhitespace or (token.hasTrailingWhitespace and lineIsWhitespaceOnly)
hasIndentGuide = not mini and showIndentGuide and (token.hasLeadingWhitespace or (token.hasTrailingWhitespace and lineIsWhitespaceOnly))
line.push(token.getValueAsHtml({invisibles, hasIndentGuide}))
position += token.value.length