Don’t call method to read stack

If the line is undefined, we want the stack to be null.
This commit is contained in:
Nathan Sobo
2015-07-09 01:51:36 -05:00
parent 587e898867
commit 028acbcae4

View File

@@ -375,7 +375,7 @@ class TokenizedBuffer extends Model
@tokenizedLineForRow(row)
stackForRow: (bufferRow) ->
@tokenizedLineForRow(bufferRow)?.ruleStack
@tokenizedLines[bufferRow]?.ruleStack
openScopesForRow: (bufferRow) ->
if bufferRow > 0