bug fix: go through the selections in reverse order

This commit is contained in:
Luke Pommersheim
2015-08-28 10:13:31 +02:00
parent e838866655
commit 3a5abef3af

View File

@@ -886,6 +886,7 @@ class TextEditor extends Model
moveLineDown: ->
selections = @getSelectedBufferRanges()
selections.sort (a, b) -> a.compare(b)
selections = selections.reverse()
@transact =>
newSelectionRanges = []