From 3df7eca6529a54d9b7d8ca9824cf050d2266bfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ska=C5=82ka?= Date: Fri, 1 Mar 2024 16:37:18 +0100 Subject: [PATCH] Test --- src/web/cursorUtils.ts | 1 - 1 file changed, 1 deletion(-) 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();