fix #1757 Merged undos don't decrement dirtyCounter correctly
This commit is contained in:
parent
07ef6a115c
commit
af16d9ca54
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ var UndoManager = function() {
|
|||
var deltas = options.args[0];
|
||||
this.$doc = options.args[1];
|
||||
if (options.merge && this.hasUndo()){
|
||||
this.dirtyCounter--;
|
||||
deltas = this.$undoStack.pop().concat(deltas);
|
||||
}
|
||||
this.$undoStack.push(deltas);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue