Do bulk rejects in reverse order.

This commit is contained in:
Paulo Reis
2017-06-05 17:17:47 +01:00
parent b277ee3254
commit 4504f77aa3

View File

@@ -220,6 +220,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?