Added ignore property to deltas for local undo

This commit is contained in:
Eddy Bruel 2011-02-20 14:10:57 +01:00
commit 40b2c0cced
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ var EditSession = function(text, mode) {
this.onChange = function(e) {
var delta = e.data;
this.$modified = true;
if (!this.$fromUndo && this.$undoManager) {
if (!this.$fromUndo && this.$undoManager && !delta.ignore) {
this.$deltas.push(delta);
this.$informUndoManager.schedule();
}

@ -1 +1 @@
Subproject commit cbfac498d30d43fdb7687d198c5b752736222c2f
Subproject commit 6e1fbe1dfdff64020f15cd9e23ea72b7803cf406