mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix merge_undoable_ops() not updating counter
This commit is contained in:
parent
055d663970
commit
30ae9f7c54
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ impl UndoManager {
|
||||||
for step in removed.into_iter().rev() {
|
for step in removed.into_iter().rev() {
|
||||||
target.changes.extend(step.changes.into_iter());
|
target.changes.extend(step.changes.into_iter());
|
||||||
}
|
}
|
||||||
|
self.counter = starting_from;
|
||||||
Ok(OpChanges {
|
Ok(OpChanges {
|
||||||
op: target.kind.clone(),
|
op: target.kind.clone(),
|
||||||
changes: StateChanges::from(&target.changes[..]),
|
changes: StateChanges::from(&target.changes[..]),
|
||||||
|
|
Loading…
Reference in a new issue