Almost working draft of basic undo coalescence

This commit is contained in:
DanyaPostfactum 2013-06-14 16:36:30 +10:00 • committed by nightwing
commit 277675525b
4 changed files with 64 additions and 4 deletions

View file

@ -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);