mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -05:00
🔥 Use just isFoldableAtBufferRow
This commit is contained in:
@@ -2939,8 +2939,7 @@ class TextEditor extends Model
|
||||
#
|
||||
# Returns a {Boolean}.
|
||||
isFoldableAtBufferRow: (bufferRow) ->
|
||||
# @languageMode.isFoldableAtBufferRow(bufferRow)
|
||||
@foldableBufferRowsForBufferRowRange(bufferRow, bufferRow).has(bufferRow)
|
||||
@displayBuffer.isFoldableAtBufferRow(bufferRow)
|
||||
|
||||
# Extended: Determine whether the given row in screen coordinates is foldable.
|
||||
#
|
||||
@@ -2953,9 +2952,6 @@ class TextEditor extends Model
|
||||
bufferRow = @displayBuffer.bufferRowForScreenRow(screenRow)
|
||||
@isFoldableAtBufferRow(bufferRow)
|
||||
|
||||
foldableBufferRowsForBufferRowRange: (startRow, endRow) ->
|
||||
@displayBuffer.foldableBufferRowsForBufferRowRange(startRow, endRow)
|
||||
|
||||
# Extended: Fold the given buffer row if it isn't currently folded, and unfold
|
||||
# it otherwise.
|
||||
toggleFoldAtBufferRow: (bufferRow) ->
|
||||
|
||||
Reference in New Issue
Block a user