Fix panic in breadcrumbs (#49930)

Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [ ] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)


Fixes
https://zed-dev.sentry.io/issues/7286512714/?project=4509715135987712&query=is%3Aunresolved&referrer=issue-stream

Release Notes:

- Fix (rare) panic when breadcrumbs contain newlines
This commit is contained in:
Conrad Irwin authored and GitHub committed 2026-02-23 22:32:47 +00:00
1 parent 94851aff19
commit 0190150a69
1 file changed
+1 -1
+1 -1
View File
@@ -7835,7 +7835,7 @@ pub fn render_breadcrumb_text(
return styled_element;
}
StyledText::new(segment.text.replace('\n', "⏎"))
StyledText::new(segment.text.replace('\n', " "))
.with_default_highlights(&text_style, segment.highlights.unwrap_or_default())
.into_any()
});