fixed content.length in tryExecute
This commit is contained in:
parent
f46c8df605
commit
feae0d51bd
@ -350,9 +350,8 @@ module.exports = function (Y /* :any */) {
|
|||||||
while (defined != null && defined.content != null) {
|
while (defined != null && defined.content != null) {
|
||||||
// check if this op has a longer content in the case it is defined
|
// check if this op has a longer content in the case it is defined
|
||||||
if (defined.content.length < op.content.length) {
|
if (defined.content.length < op.content.length) {
|
||||||
var diff = op.content.length - defined.content.length
|
op.content.splice(0, defined.content.length)
|
||||||
op.content.splice(0, diff)
|
op.id = [op.id[0], op.id[1] + defined.content.length]
|
||||||
op.id = [op.id[0], op.id[1] + diff]
|
|
||||||
op.left = defined.id
|
op.left = defined.id
|
||||||
op.origin = defined.id
|
op.origin = defined.id
|
||||||
defined = yield* this.getOperation(op.id)
|
defined = yield* this.getOperation(op.id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user