# vim/helix: Use grapheme count on replace \(\#51776\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3684b5a42fad83266a9dcd87333f867c7d038ecf

Requested commit: 3684b5a42fad83266a9dcd87333f867c7d038ecf

Commit: 3684b5a42fad83266a9dcd87333f867c7d038ecf

Tree: 62640aef232ba4df6b9fe4020c92098b88df6809

Author: Finn Eitreim

Committer: GitHub

## Message

```
vim/helix: Use grapheme count on replace (#51776)

Update vim and helix replace to repeat based on grapheme count instead of
byte length or Unicode scalar count.

This fixes cases where a single visible character is made up of multiple
bytes or scalars, such as decomposed characters like `e\u{301}` and emoji.

Closes #51772 

Release Notes:

- Fixed vim/helix's replace action to take into consideration grapheme
count

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
```

## Parents

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

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