# editor: Prevent non‑boundary highlight indices in UTF‑8 \(\#38510\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 271771c742001157c0568c2cf40f4b184120fbe4

Requested commit: 271771c742001157c0568c2cf40f4b184120fbe4

Commit: 271771c742001157c0568c2cf40f4b184120fbe4

Tree: a45f5d38ee0fdccfc9a8e00677707557cacf5044

Author: Miao

Committer: GitHub

## Message

```
editor: Prevent non‑boundary highlight indices in UTF‑8 (#38510)

Closes #38359

Release Notes:

- Use byte offsets for highlights; fix UTF‑8 crash
```

## Parents

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

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