lineForScreenRow -> tokenizedLineForRow

The method was severely mislabeled
This commit is contained in:
Ben Ogle
2014-09-03 13:32:23 -07:00
parent 2b9b4a48ef
commit 99f899dc4a
6 changed files with 163 additions and 166 deletions

View File

@@ -221,10 +221,8 @@ class TokenizedBuffer extends Model
{tokens, ruleStack} = @grammar.tokenizeLine(line, ruleStack, row is 0)
new TokenizedLine({tokens, ruleStack, tabLength, lineEnding, indentLevel, @invisibles})
# FIXME: benogle says: These are actually buffer rows as all buffer rows are
# accounted for in @tokenizedLines
lineForScreenRow: (row) ->
@linesForScreenRows(row, row)[0]
tokenizedLineForRow: (bufferRow) ->
@tokenizedLines[bufferRow]
# FIXME: benogle says: These are actually buffer rows as all buffer rows are
# accounted for in @tokenizedLines