Skip to content

Commit 0333308

Browse files
authored
Update packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/CollectionItemScopeHandler/createTargetScope.ts
1 parent e3635ba commit 0333308

File tree

1 file changed

+2
-1
lines changed
  • packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/CollectionItemScopeHandler

1 file changed

+2
-1
lines changed

packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/CollectionItemScopeHandler/createTargetScope.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export function createTargetScope(
2121
: undefined;
2222

2323
// We have both leading and trailing delimiter ranges
24-
// The leading one is longer/more specific so prefer to use that for removal.
24+
// If the leading one is longer/more specific, prefer to use that for removal;
25+
// otherwise use undefined to fallback to the default behavior (often trailing)
2526
const removalRange =
2627
!isEveryScope &&
2728
leadingDelimiterRange != null &&

0 commit comments

Comments
 (0)