Restore line order in TokenizedBufferIterator.prototype.seek

This commit is contained in:
Antonio Scandurra
2016-10-12 12:20:32 +02:00
parent 633e68f4d5
commit 2246072ac9

View File

@@ -13,11 +13,10 @@ class TokenizedBufferIterator
@tagIndex = null
currentLine = @tokenizedBuffer.tokenizedLineForRow(position.row)
@currentLineLength = currentLine.text.length
@currentLineOpenTags = currentLine.openScopes
@currentTags = currentLine.tags
@currentLineOpenTags = currentLine.openScopes
@currentLineLength = currentLine.text.length
@containingTags = @currentLineOpenTags.map (id) => @tokenizedBuffer.grammar.scopeForId(id)
currentColumn = 0
for tag, index in @currentTags