# Fix project symbol picker UTF-8 highlight panic \(\#53485\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6184b2457c796efe19d4df2dc7286310db7797f3

Requested commit: 6184b2457c796efe19d4df2dc7286310db7797f3

Commit: 6184b2457c796efe19d4df2dc7286310db7797f3

Tree: f36da0f2b0de37ee8482f62121d7e58e5552cb34

Author: Anthony Eid

Committer: GitHub

## Message

```
Fix project symbol picker UTF-8 highlight panic (#53485)

This panic was caused because we incorrectly assumed that each character
was one byte when converting character indices to highlight range byte
indices.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #53479

Release Notes:

- Fix a panic that could occur in the project symbol search picker

---------

Co-authored-by: Lukas Wirth <lukas@zed.dev>
```

## Parents

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

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