mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix folding with splits
Fixes #4099 Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
@@ -19,10 +19,9 @@ class Fold
|
||||
|
||||
# Returns whether this fold is contained within another fold
|
||||
isInsideLargerFold: ->
|
||||
if largestContainingFoldMarker = @displayBuffer.findMarker(class: 'fold', containsBufferRange: @getBufferRange())
|
||||
not largestContainingFoldMarker.getBufferRange().isEqual(@getBufferRange())
|
||||
else
|
||||
false
|
||||
largestContainingFoldMarker = @displayBuffer.findFoldMarker(containsRange: @getBufferRange())
|
||||
largestContainingFoldMarker and
|
||||
not largestContainingFoldMarker.getRange().isEqual(@getBufferRange())
|
||||
|
||||
# Destroys this fold
|
||||
destroy: ->
|
||||
|
||||
Reference in New Issue
Block a user