We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53653db commit b6de450Copy full SHA for b6de450
packages/cursorless-org-docs/src/docs/components/flattenHighlights.ts
@@ -14,7 +14,7 @@ export function flattenHighlights(highlights: Highlight[]): Highlight[] {
14
const range = new Range(positions[i], positions[i + 1]);
15
16
const matchingHighlights = range.isEmpty
17
- ? highlights.filter((h) => range.contains(range))
+ ? highlights.filter((h) => h.range.contains(range))
18
: highlights.filter((h) => {
19
const intersection = h.range.intersection(range);
20
return intersection && !intersection.isEmpty;
0 commit comments