Almost working draft of basic undo coalescence
This commit is contained in:
parent
7798de7bd3
commit
277675525b
4 changed files with 64 additions and 4 deletions
|
|
@ -406,10 +406,11 @@ var EditSession = function(text, mode) {
|
|||
if (self.$deltas.length > 0) {
|
||||
undoManager.execute({
|
||||
action: "aceupdate",
|
||||
args: [self.$deltas, self]
|
||||
args: [self.$deltas, self],
|
||||
merge: self.coalesceDeltas
|
||||
});
|
||||
}
|
||||
|
||||
self.coalesceDeltas = false;
|
||||
self.$deltas = [];
|
||||
}
|
||||
this.$informUndoManager = lang.delayedCall(this.$syncInformUndoManager);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue