# editor: Remove unnecessary cloning of selections \(\#46598\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5ddfcf09f742c762d0c7627e436f92cca2d75901)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5ddfcf09f742c762d0c7627e436f92cca2d75901

Requested commit: 5ddfcf09f742c762d0c7627e436f92cca2d75901

Commit: 5ddfcf09f742c762d0c7627e436f92cca2d75901

Tree: f0b986c65730dd251fb560df21b50b6a025612a3

Author: Finn Evers

Committer: GitHub

## Message

```
editor: Remove unnecessary cloning of selections (#46598)

Stumbled across this upon a PR review - `unfold_ranges` takes a slice of
Ranges and already clones the ranges itself, so we do not need to clone
the selections prior to passing these.

Release Notes:

- N/A
```

## Parents

- [819d2f7c7822c96e8f6e4714907dfcb3527168eb](https://git.cafe/gitcafe/zed/commit/819d2f7c7822c96e8f6e4714907dfcb3527168eb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5ddfcf09f742c762d0c7627e436f92cca2d75901?format=markdown)
