Skip to content

Fix project symbol picker UTF-8 highlight panic (#53485) (cherry-pick to preview)#53563

Merged
zed-zippy[bot] merged 1 commit intov0.232.xfrom
cherry-pick-v0.232.x-6184b245
Apr 10, 2026
Merged

Fix project symbol picker UTF-8 highlight panic (#53485) (cherry-pick to preview)#53563
zed-zippy[bot] merged 1 commit intov0.232.xfrom
cherry-pick-v0.232.x-6184b245

Conversation

@zed-zippy
Copy link
Copy Markdown
Contributor

@zed-zippy zed-zippy Bot commented Apr 9, 2026

Cherry-pick of #53485 to preview


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:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX
    checklist
  • Tests cover the new/changed behavior
  • 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

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>
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 9, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator Bot requested review from a team, MrSubidubi and mikayla-maki and removed request for a team April 9, 2026 21:20
@zed-community-bot zed-community-bot Bot added the bot Pull requests authored by a bot label Apr 9, 2026
@zed-zippy zed-zippy Bot merged commit 4b8b3ab into v0.232.x Apr 10, 2026
58 of 60 checks passed
@zed-zippy zed-zippy Bot deleted the cherry-pick-v0.232.x-6184b245 branch April 10, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Pull requests authored by a bot cla-signed The user has signed the Contributor License Agreement

3 participants