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