diff --git a/lib/models/documents/document.dart b/lib/models/documents/document.dart index 62a59c05..bd3a4372 100644 --- a/lib/models/documents/document.dart +++ b/lib/models/documents/document.dart @@ -118,7 +118,7 @@ class Document { return block.queryChild(res.offset, true); } - compose(Delta delta, ChangeSource changeSource, {bool history}) { + compose(Delta delta, ChangeSource changeSource) { assert(!_observer.isClosed); delta.trim(); assert(delta.isNotEmpty); diff --git a/lib/models/documents/history.dart b/lib/models/documents/history.dart index f672ba68..8f0240c0 100644 --- a/lib/models/documents/history.dart +++ b/lib/models/documents/history.dart @@ -88,7 +88,7 @@ class History { dest.add(inverseDelta); this.lastRecorded = 0; this.ignoreChange = true; - doc.compose(delta, ChangeSource.LOCAL, history: true); + doc.compose(delta, ChangeSource.LOCAL); this.ignoreChange = false; }