diff --git a/packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/CollectionItemScopeHandler/CollectionItemTextualScopeHandler.ts b/packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/CollectionItemScopeHandler/CollectionItemTextualScopeHandler.ts index 979e0c22ac..b290edb0d2 100644 --- a/packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/CollectionItemScopeHandler/CollectionItemTextualScopeHandler.ts +++ b/packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/CollectionItemScopeHandler/CollectionItemTextualScopeHandler.ts @@ -77,6 +77,7 @@ export class CollectionItemTextualScopeHandler extends BaseScopeHandler { currentIterationState = lastState; break; } + // We are done with this iteration scope. Add all scopes from it and pop it from the stack. this.addScopes(scopes, lastState); iterationStatesStack.pop(); }