# Show only prefix/suffix if there are more than 12 breadcrumbs \(\#9220\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d5796dc5eb364b17f028188f844d150604258832

Requested commit: d5796dc5eb364b17f028188f844d150604258832

Commit: d5796dc5eb364b17f028188f844d150604258832

Tree: 98a9ed875c630876e6589b8b4f5b4c48511c720e

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Show only prefix/suffix if there are more than 12 breadcrumbs (#9220)

Fixes https://github.com/zed-industries/zed/issues/9079

This should fix the arena panic we were observing. I saw that breadcrumb
rendering was on the stack trace for some of the panics, so my suspicion
is that it's being caused by some people navigating into deeply nested
files.

Release Notes:

- Fixed a panic that could occur when displaying too many breadcrumbs.
([#9079](https://github.com/zed-industries/zed/issues/9079))
```

## Parents

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

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