preserve folds when making new selections

This commit is contained in:
Luke Pommersheim
2015-08-23 18:35:26 +02:00
parent b29f2ae5a8
commit b394b2c903

View File

@@ -942,7 +942,7 @@ class TextEditor extends Model
for selection in selectionsToMove
newSelectionRanges.push(selection.translate([insertDelta, 0]))
@setSelectedBufferRanges(newSelectionRanges)
@setSelectedBufferRanges(newSelectionRanges, {preserveFolds: true})
# Duplicate the most recent cursor's current line.
duplicateLines: ->