Proper follow redones in nested redos - fixes #317

This commit is contained in:
Kevin Jahns
2021-10-14 14:59:26 +02:00
parent 7486ea7148
commit 995fbfa4cc
4 changed files with 75 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ const popStackItem = (undoManager, stack, eventType) => {
}
})
itemsToRedo.forEach(struct => {
performedChange = redoItem(transaction, struct, itemsToRedo) !== null || performedChange
performedChange = redoItem(transaction, struct, itemsToRedo, itemsToDelete) !== null || performedChange
})
// We want to delete in reverse order so that children are deleted before
// parents, so we have more information available when items are filtered.