Skip to content

Commit b6de450

Browse files
Fix unused argument
1 parent 53653db commit b6de450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cursorless-org-docs/src/docs/components/flattenHighlights.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function flattenHighlights(highlights: Highlight[]): Highlight[] {
1414
const range = new Range(positions[i], positions[i + 1]);
1515

1616
const matchingHighlights = range.isEmpty
17-
? highlights.filter((h) => range.contains(range))
17+
? highlights.filter((h) => h.range.contains(range))
1818
: highlights.filter((h) => {
1919
const intersection = h.range.intersection(range);
2020
return intersection && !intersection.isEmpty;

0 commit comments

Comments
 (0)