We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a41ea1b commit 4d0e99dCopy full SHA for 4d0e99d
src/model/Doc.js
@@ -197,7 +197,10 @@ Doc.prototype = createObj(BranchChunk.prototype, {
197
for (let i = 0; i < hist.undone.length; i++) if (!hist.undone[i].ranges) ++undone
198
return {undo: done, redo: undone}
199
},
200
- clearHistory: function() {this.history = new History(this.history.maxGeneration)},
+ clearHistory: function() {
201
+ this.history = new History(this.history.maxGeneration)
202
+ linkedDocs(this, doc => doc.history = this.history, true)
203
+ },
204
205
markClean: function() {
206
this.cleanGeneration = this.changeGeneration(true)
0 commit comments