# Fix bug in selection position maintenance while renaming symbol · gitcafe/zed

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

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

Visibility: public

Requested revision: cd4a9f317822d10c7f2aaf268ec301c0a05c3320

Requested commit: cd4a9f317822d10c7f2aaf268ec301c0a05c3320

Commit: cd4a9f317822d10c7f2aaf268ec301c0a05c3320

Tree: ad57fe8299299279b7b0c32ce97efcd2960939ef

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix bug in selection position maintenance while renaming symbol

We were resolving the selection with the wrong buffer, which now
causes a panic because we don't check the anchor's `buffer_id` anymore.

```

## Parents

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

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