found some gc bugs that occur when using deletion lengths

This commit is contained in:
Kevin Jahns
2016-04-25 13:09:52 +02:00
parent 90b7b01e9a
commit 71bf6438e1
3 changed files with 16 additions and 14 deletions

View File

@@ -229,6 +229,9 @@ module.exports = function (Y/* :any */) {
// if right exists, and it is supposed to be gc'd. Remove it from the gc
if (right.gc != null) {
if (right.content != null && right.content.length > 1) {
right = yield* this.getInsertionCleanEnd(right.id)
}
this.store.removeFromGarbageCollector(right)
}
yield* this.setOperation(right)