# Fix incorrect search ranges when rendering search matches in the outline panel \(\#41859\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9ecf257502d9da63d7b0a25c6c4f569aeea29faa

Requested commit: 9ecf257502d9da63d7b0a25c6c4f569aeea29faa

Commit: 9ecf257502d9da63d7b0a25c6c4f569aeea29faa

Tree: 66d570d1332117d56af6ed8d695af277706faa08

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix incorrect search ranges when rendering search matches in the outline panel (#41859)

Closes https://github.com/zed-industries/zed/issues/41792

Release Notes:

- Fixed outline panel panicking when rendering certain search matches
```

## Parents

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

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