# vim: Fix replace in helix select mode \(\#57553\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e7bbfd5223034962438ad2c428ed063a54770d58

Requested commit: e7bbfd5223034962438ad2c428ed063a54770d58

Commit: e7bbfd5223034962438ad2c428ed063a54770d58

Tree: 8e475863a1b837b559cab73936bd8b828c6a3b7e

Author: liam

Committer: GitHub

## Message

```
vim: Fix replace in helix select mode (#57553)

Resolves https://github.com/zed-industries/zed/issues/57522

This diff fixes `r` in Helix select mode. The keybinding already pushed
the replace operator in `helix_select`, but when the replacement
character was typed, the operator dispatch only handled `HelixNormal`,
so selected text in `HelixSelect` fell through and cleared the operator
without editing the buffer.

With this change, Helix select mode uses the same `helix_replace` path
as Helix normal mode. Multi-character selections now replace each
selected grapheme with the typed character and return to Helix normal
mode, matching the existing behaviour for Helix normal selections.

Release Notes:
- Fixed `r` not replacing multi-character selections in Helix select
mode.
```

## Parents

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

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