Only pass invisibles through to the line component if needed

This commit is contained in:
probablycorey
2014-05-19 17:10:36 -07:00
parent 8b4cff474f
commit 4d642b91ef
2 changed files with 7 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ LinesComponent = React.createClass
hasIndentGuide = not mini and showIndentGuide and token.hasLeadingWhitespace or (token.hasTrailingWhitespace and lineIsWhitespaceOnly)
innerHTML += token.getValueAsHtml({invisibles, hasIndentGuide})
innerHTML += @popScope(scopeStack) while scopeStack.length > 0
innerHTML += invisibles.eol
innerHTML += invisibles.eol if invisibles.eol?
innerHTML
updateScopeStack: (scopeStack, desiredScopes) ->