# editor: Use raw head selection for rename \(\#60594\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 86b2831c7c2e210ce150b2771c89dc6bd70ae8a7

Requested commit: 86b2831c7c2e210ce150b2771c89dc6bd70ae8a7

Commit: 86b2831c7c2e210ce150b2771c89dc6bd70ae8a7

Tree: d0bdc77eb3842960ea0a8eb987943d7b764776ca

Author: Neel

Committer: GitHub

## Message

```
editor: Use raw head selection for rename (#60594)

Follow up to https://github.com/zed-industries/zed/pull/55542, which
reused the shifted offset for the rename input's *initial selection*,
cutting it one character short.

<img width="524" height="512" alt="image"
src="https://github.com/user-attachments/assets/37032614-2cfd-4ad4-9005-f2eac57924a1"
/>
<img width="435" height="158" alt="image"
src="https://github.com/user-attachments/assets/7b1b9c52-08d6-48ce-928a-873f6e175f65"
/>

---

Release Notes:

- Fixed symbol rename in vim mode omitting the last character of the
symbol out of the rename input's initial selection
```

## Parents

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

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