mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Use cached .foldable values on TokenizedBuffer instead of recomputing
This commit is contained in:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user