# Fix panic in update_selection_occurrence_highlights \(\#29979\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ef31252ef8462a039d1305dea7ef3bb3ef992900

Requested commit: ef31252ef8462a039d1305dea7ef3bb3ef992900

Commit: ef31252ef8462a039d1305dea7ef3bb3ef992900

Tree: 0a41bb63bff70f230be4cb60ccb51c2d28553e3a

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix panic in update_selection_occurrence_highlights (#29979)

Closes #ISSUE

Release Notes:

- Fixed a (rare) panic when highlighting text in the editor
```

## Parents

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

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