Skip to content

Commit a9e37f6

Browse files
saidelikeCedric Halbronn
and
Cedric Halbronn
authored
updateSelection minor simplification (#2292)
## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet minor and similar to #2277 Co-authored-by: Cedric Halbronn <[email protected]>
1 parent 6cc736d commit a9e37f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/cursorless-engine/src/core/updateSelections/updateSelections.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,10 @@ export async function performEditsAndUpdateFullSelectionInfos(
382382
}
383383
};
384384

385-
await callFunctionAndUpdateSelectionInfos(
385+
return await callFunctionAndUpdateSelectionInfos(
386386
rangeUpdater,
387387
func,
388388
editor.document,
389389
originalSelectionInfos,
390390
);
391-
392-
return selectionInfosToSelections(originalSelectionInfos);
393391
}

0 commit comments

Comments
 (0)