mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
🎨
This commit is contained in:
@@ -465,8 +465,8 @@ class DisplayBuffer extends Model
|
||||
|
||||
folds
|
||||
|
||||
# Returns all the folds that contain the given row range.
|
||||
foldsContainingBufferRowRange: (startRow, endRow) ->
|
||||
# Returns all the folds that intersect the given row range.
|
||||
foldsIntersectingBufferRowRange: (startRow, endRow) ->
|
||||
@foldForMarker(marker) for marker in @findFoldMarkers(intersectsRowRange: [startRow, endRow])
|
||||
|
||||
# Public: Given a buffer row, this returns folds that include it.
|
||||
|
||||
@@ -97,7 +97,7 @@ class LanguageMode
|
||||
|
||||
# Unfolds all the foldable lines in the buffer.
|
||||
unfoldAll: ->
|
||||
for fold in @editor.displayBuffer.foldsContainingBufferRowRange(0, @buffer.getLastRow()) by -1
|
||||
for fold in @editor.displayBuffer.foldsIntersectingBufferRowRange(0, @buffer.getLastRow()) by -1
|
||||
fold.destroy()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user