From 9f06f9fb278609ba561d213b26a818323c6621f6 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sun, 29 Mar 2026 04:59:39 +0200 Subject: [PATCH] applyDelta forwards am on modify --- src/ytype.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ytype.js b/src/ytype.js index db2117c2..70143d19 100644 --- a/src/ytype.js +++ b/src/ytype.js @@ -1087,7 +1087,7 @@ export class YType { let item = currPos.right while (item != null && (item.deleted || !item.countable)) { item = item.next } if (item == null || item.content.constructor !== ContentType) { error.unexpectedCase() } - /** @type {ContentType} */ (item.content).type.applyDelta(op.value) + /** @type {ContentType} */ (item.content).type.applyDelta(op.value, am) currPos.formatText(transaction, /** @type {any} */ (this), 1, op.format || {}) } else { error.unexpectedCase() @@ -1103,7 +1103,7 @@ export class YType { if (!(sub instanceof YType)) { error.unexpectedCase() } - sub.applyDelta(op.value) + sub.applyDelta(op.value, am) } } })