🐛 Fix ident guides missing on whitespace only lines with invis chars

This commit is contained in:
Jason Woods
2015-02-01 17:57:48 +00:00
parent 6169caa1fb
commit 2e72790e72
2 changed files with 4 additions and 9 deletions

View File

@@ -213,8 +213,7 @@ LinesComponent = React.createClass
innerHTML = ""
scopeStack = []
firstTrailingWhitespacePosition = text.search(/\s*$/)
lineIsWhitespaceOnly = firstTrailingWhitespacePosition is 0
lineIsWhitespaceOnly = line.isOnlyWhitespace()
for token in tokens
innerHTML += @updateScopeStack(scopeStack, token.scopes)
hasIndentGuide = not editor.isMini() and showIndentGuide and (token.hasLeadingWhitespace() or (token.hasTrailingWhitespace() and lineIsWhitespaceOnly))