mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Can start folds earlier on the same line as other folds.
This commit is contained in:
@@ -114,7 +114,8 @@ class LineFolder
|
||||
new ScreenLineFragment([{value: '...', type: 'fold-placeholder', fold}], '...', [0, 3], fold.getRange().toDelta(), isAtomic: true)
|
||||
|
||||
foldsForBufferRow: (bufferRow) ->
|
||||
@activeFolds[bufferRow] or []
|
||||
folds = @activeFolds[bufferRow] or []
|
||||
folds.sort (a, b) -> a.compare(b)
|
||||
|
||||
linesForScreenRows: (startRow, endRow) ->
|
||||
@lineMap.linesForScreenRows(startRow, endRow)
|
||||
@@ -194,3 +195,5 @@ class Fold
|
||||
|
||||
newRange.end.add(point.subtract(oldRange.end))
|
||||
|
||||
compare: (other) ->
|
||||
@start.compare(other.start)
|
||||
|
||||
Reference in New Issue
Block a user