Revert oversimplifications
All checks were successful
Check and publish / build (push) Successful in 11m5s
Check and publish / publish-crate (push) Has been skipped
Check and publish / publish-pypi (push) Has been skipped

This commit is contained in:
Andras Schmelczer 2026-10-29 22:42:31 +00:00
commit 5170bf02ca

View file

@ -102,10 +102,10 @@ function updateMergedText(): void {
const selection =
results.cursors?.length === 2
? {
start: results.cursors[0].position,
end: results.cursors[1].position,
side: leftCursors ? 'left' : 'right',
}
start: results.cursors[0].position,
end: results.cursors[1].position,
side: leftCursors ? 'left' : 'right',
}
: undefined;
const fragment = document.createDocumentFragment();
@ -127,10 +127,7 @@ function updateMergedText(): void {
}
fragment.appendChild(
createSelectionOverlay(
selection.side === 'left',
selection.start !== selection.end
)
createSelectionOverlay(selection.side === 'left', selection.start !== selection.end)
);
}