mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
🐛 Always copy selections in order
This commit is contained in:
@@ -2621,7 +2621,7 @@ class TextEditor extends Model
|
||||
# Essential: For each selection, copy the selected text.
|
||||
copySelectedText: ->
|
||||
maintainClipboard = false
|
||||
for selection in @getSelections()
|
||||
for selection in @getSelectionsOrderedByBufferPosition()
|
||||
if selection.isEmpty()
|
||||
previousRange = selection.getBufferRange()
|
||||
selection.selectLine()
|
||||
|
||||
Reference in New Issue
Block a user