Skip to content

Commit

Permalink
updateSelection minor simplification (#2292)
Browse files Browse the repository at this point in the history
## 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 <cedric.halbronn@nccgroup.com>
  • Loading branch information
saidelike and Cedric Halbronn authored Apr 9, 2024
1 parent 6cc736d commit a9e37f6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,10 @@ export async function performEditsAndUpdateFullSelectionInfos(
}
};

await callFunctionAndUpdateSelectionInfos(
return await callFunctionAndUpdateSelectionInfos(
rangeUpdater,
func,
editor.document,
originalSelectionInfos,
);

return selectionInfosToSelections(originalSelectionInfos);
}

0 comments on commit a9e37f6

Please sign in to comment.