mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
preserve folds when making new selections
This commit is contained in:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user