Fix undefined variable references rendering lines

This commit is contained in:
Nathan Sobo
2014-04-11 10:07:57 -06:00
parent ca4dd5a29a
commit 205e10fd09

View File

@@ -1482,13 +1482,10 @@ class EditorView extends View
html = @buildEmptyLineHtml(showIndentGuide, eolInvisibles, htmlEolInvisibles, indentation, editor, mini)
line.push(html) if html
else
firstNonWhitespacePosition = text.search(/\S/)
firstTrailingWhitespacePosition = text.search(/\s*$/)
lineIsWhitespaceOnly = firstTrailingWhitespacePosition is 0
position = 0
for token in tokens
@updateScopeStack(line, scopeStack, token.scopes)
hasIndentGuide = not mini and showIndentGuide and (hasLeadingWhitespace or lineIsWhitespaceOnly)
hasIndentGuide = not mini and showIndentGuide
line.push(token.getValueAsHtml({invisibles, hasIndentGuide}))
position += token.value.length