mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Respect preserveFolds attribute when creating selections from markers
This commit is contained in:
@@ -1722,7 +1722,7 @@ class Editor extends Model
|
||||
selection = new Selection(_.extend({editor: this, marker, cursor}, options))
|
||||
@selections.push(selection)
|
||||
selectionBufferRange = selection.getBufferRange()
|
||||
@mergeIntersectingSelections()
|
||||
@mergeIntersectingSelections(preserveFolds: marker.getAttributes().preserveFolds)
|
||||
if selection.destroyed
|
||||
for selection in @getSelections()
|
||||
if selection.intersectsBufferRange(selectionBufferRange)
|
||||
|
||||
Reference in New Issue
Block a user