Skip to content

Commit

Permalink
fix: fix cell boundary selection cheap elimination (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Oct 23, 2024
1 parent d4487a0 commit 41e4139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cellselection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 41e4139

Please sign in to comment.