From c0479f3fdf5b7d03e85d02aba994780e5f834269 Mon Sep 17 00:00:00 2001 From: Neil Jenkins Date: Wed, 20 Dec 2023 10:45:19 +1100 Subject: [PATCH] Fix missing assignment in fixCursor The parent variable was introduced in the Typescript refactor to make the type checker happy, however we missed assigning the result back to the `node` variable at the end. Fixes #449 --- source/node/MergeSplit.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/source/node/MergeSplit.ts b/source/node/MergeSplit.ts index 17645ec..0b1a4be 100644 --- a/source/node/MergeSplit.ts +++ b/source/node/MergeSplit.ts @@ -44,6 +44,7 @@ const fixCursor = (node: Node): Node => { while ((child = parent.lastElementChild) && !isInline(child)) { parent = child; } + node = parent; } if (fixer) { try {