Use cached .foldable values on TokenizedBuffer instead of recomputing

This commit is contained in:
Nathan Sobo
2015-02-06 18:54:34 -07:00
parent f326c818fd
commit c8c13b8b40
3 changed files with 3 additions and 36 deletions

View File

@@ -2705,7 +2705,8 @@ class TextEditor extends Model
#
# Returns a {Boolean}.
isFoldableAtBufferRow: (bufferRow) ->
@languageMode.isFoldableAtBufferRow(bufferRow)
# @languageMode.isFoldableAtBufferRow(bufferRow)
@displayBuffer.tokenizedBuffer.tokenizedLineForRow(bufferRow)?.foldable ? false
# Extended: Determine whether the given row in screen coordinates is foldable.
#