mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Do bulk rejects in reverse order.
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user