diff --git a/src/web/cursorUtils.ts b/src/web/cursorUtils.ts index 9007063b2..01939a6dd 100644 --- a/src/web/cursorUtils.ts +++ b/src/web/cursorUtils.ts @@ -66,7 +66,6 @@ function moveCursorToEnd(target: HTMLElement) { function getCurrentCursorPosition(target: HTMLElement) { const sel = window.getSelection(); - if (sel && sel.rangeCount > 0) { const range = sel.getRangeAt(0); const preSelectionRange = range.cloneRange();