Do bulk rejects in reverse order.

This commit is contained in:
Paulo Reis 2017-06-05 17:17:47 +01:00
parent e616a62d68
commit 5a75663a0c

View file

@ -214,6 +214,8 @@ define [
rejectChangeIds: (change_ids) ->
changes = @rangesTracker.getChanges(change_ids)
return if changes.length == 0
changes.sort((a, b) -> b.op.p - a.op.p)
session = @editor.getSession()
for change in changes
if change.op.d?