diff --git a/src/editor.coffee b/src/editor.coffee index 9753ad409..629955d3f 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -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)