mirror of
https://github.com/atom/atom.git
synced 2026-02-12 07:35:14 -05:00
fix for "bug that causes moveLineUp to move the wrong selections"
This commit is contained in:
@@ -831,6 +831,11 @@ class TextEditor extends Model
|
||||
selection = selections.shift()
|
||||
selectionsToMove = [selection]
|
||||
|
||||
while selection.end.row is selections[0]?.start.row
|
||||
selectionsToMove.push(selections[0])
|
||||
selection.end.row = selections[0].end.row
|
||||
selections.shift()
|
||||
|
||||
# Compute the range spanned by all these selections...
|
||||
linesRangeStart = [selection.start.row, 0]
|
||||
if selection.end.row > selection.start.row and selection.end.column is 0
|
||||
|
||||
Reference in New Issue
Block a user