From e86d5ba25b296fe1e23202327156d2279a93071a Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Thu, 4 Jun 2020 17:07:17 +0200 Subject: [PATCH] fix ref offset issue --- src/structs/Item.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structs/Item.js b/src/structs/Item.js index 702c814e..c3859be1 100644 --- a/src/structs/Item.js +++ b/src/structs/Item.js @@ -739,6 +739,7 @@ export class ItemRef extends AbstractStructRef { this.id.clock += offset this.left = createID(this.id.client, this.id.clock - 1) this.content = this.content.splice(offset) + this.length -= offset } const left = this.left === null ? null : getItemCleanEnd(transaction, store, this.left)