diff --git a/src/text-editor.coffee b/src/text-editor.coffee index d737a850e..dd423f370 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -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: ->