From 41e4139073f2e97bc86987adf80c7f3fa5a6dbda Mon Sep 17 00:00:00 2001 From: ocavue Date: Wed, 23 Oct 2024 18:46:49 +1100 Subject: [PATCH] fix: fix cell boundary selection cheap elimination (#251) --- src/cellselection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cellselection.ts b/src/cellselection.ts index e092dfe8..a8601cb9 100644 --- a/src/cellselection.ts +++ b/src/cellselection.ts @@ -390,7 +390,7 @@ export function drawCellSelection(state: EditorState): DecorationSource | null { } function isCellBoundarySelection({ $from, $to }: TextSelection) { - if ($from.pos == $to.pos || $from.pos < $from.pos - 6) return false; // Cheap elimination + if ($from.pos == $to.pos || $from.pos < $to.pos - 6) return false; // Cheap elimination let afterFrom = $from.pos; let beforeTo = $to.pos; let depth = $from.depth;