fix ref offset issue

This commit is contained in:
Kevin Jahns 2020-06-04 17:07:17 +02:00
parent a059fa12e9
commit e86d5ba25b

View File

@ -739,6 +739,7 @@ export class ItemRef extends AbstractStructRef {
this.id.clock += offset this.id.clock += offset
this.left = createID(this.id.client, this.id.clock - 1) this.left = createID(this.id.client, this.id.clock - 1)
this.content = this.content.splice(offset) this.content = this.content.splice(offset)
this.length -= offset
} }
const left = this.left === null ? null : getItemCleanEnd(transaction, store, this.left) const left = this.left === null ? null : getItemCleanEnd(transaction, store, this.left)