Add note for ScreenRow in tokenizedBuffers

This commit is contained in:
Ben Ogle 2013-07-23 13:39:42 -07:00
parent f7bb8aab9e
commit 2d9ef9aad6

View File

@ -183,9 +183,13 @@ class TokenizedBuffer
{ tokens, ruleStack } = @grammar.tokenizeLine(line, ruleStack, row is 0)
new TokenizedLine({tokens, ruleStack, @tabLength, lineEnding})
# FIXME: benogle says: These are actually buffer rows as all buffer rows are
# accounted for in @tokenizedLines
lineForScreenRow: (row) ->
@linesForScreenRows(row, row)[0]
# FIXME: benogle says: These are actually buffer rows as all buffer rows are
# accounted for in @tokenizedLines
linesForScreenRows: (startRow, endRow) ->
@tokenizedLines[startRow..endRow]