Fix merge_undoable_ops() not updating counter

This commit is contained in:
Damien Elmes 2023-09-15 16:53:00 +10:00
parent 055d663970
commit 30ae9f7c54

View file

@ -157,7 +157,7 @@ impl UndoManager {
for step in removed.into_iter().rev() {
target.changes.extend(step.changes.into_iter());
}
self.counter = starting_from;
Ok(OpChanges {
op: target.kind.clone(),
changes: StateChanges::from(&target.changes[..]),