0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

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
This commit is contained in:
Neil Jenkins 2023-12-20 10:45:19 +11:00
parent 949b5b227e
commit c0479f3fdf

View file

@ -44,6 +44,7 @@ const fixCursor = (node: Node): Node => {
while ((child = parent.lastElementChild) && !isInline(child)) { while ((child = parent.lastElementChild) && !isInline(child)) {
parent = child; parent = child;
} }
node = parent;
} }
if (fixer) { if (fixer) {
try { try {