Skip to content

Commit 9a4b27d

Browse files
Allow text fragments with error
1 parent 85f92eb commit 9a4b27d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/SurroundingPairScopeHandler/getDelimiterOccurrences.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ export function getDelimiterOccurrences(
6565

6666
results.push({
6767
delimiterInfo: delimiterTextToDelimiterInfoMap[text],
68-
textFragmentRange: ifNoErrors(
69-
textFragments.getSmallestContaining(matchRange),
70-
)?.range,
68+
textFragmentRange: textFragments.getSmallestContaining(matchRange)?.range,
7169
range:
7270
ifNoErrors(pairDelimiters.getContaining(matchRange))?.range ??
7371
matchRange,

0 commit comments

Comments
 (0)