From cdbbec91f06e8d3765acbe366336ef500435f448 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Wed, 3 Sep 2014 13:33:10 -0700 Subject: [PATCH] row -> bufferRow for clarity --- src/tokenized-buffer.coffee | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/tokenized-buffer.coffee b/src/tokenized-buffer.coffee index 9b26703bf..8ec1435ac 100644 --- a/src/tokenized-buffer.coffee +++ b/src/tokenized-buffer.coffee @@ -224,16 +224,15 @@ class TokenizedBuffer extends Model tokenizedLineForRow: (bufferRow) -> @tokenizedLines[bufferRow] + stackForRow: (bufferRow) -> + @tokenizedLines[bufferRow]?.ruleStack - stackForRow: (row) -> - @tokenizedLines[row]?.ruleStack - - indentLevelForRow: (row) -> - line = @buffer.lineForRow(row) + indentLevelForRow: (bufferRow) -> + line = @buffer.lineForRow(bufferRow) indentLevel = 0 if line is '' - nextRow = row + 1 + nextRow = bufferRow + 1 lineCount = @getLineCount() while nextRow < lineCount nextLine = @buffer.lineForRow(nextRow) @@ -242,7 +241,7 @@ class TokenizedBuffer extends Model break nextRow++ - previousRow = row - 1 + previousRow = bufferRow - 1 while previousRow >= 0 previousLine = @buffer.lineForRow(previousRow) unless previousLine is ''