From 8356db4f8d1edfd890ccace6ddfab42357b07281 Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Wed, 25 Feb 2026 05:16:44 +0000 Subject: [PATCH] Fix panic in breadcrumbs (#49930) (cherry-pick to preview) (#50053) Cherry-pick of #49930 to preview ---- 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 Co-authored-by: Conrad Irwin --- crates/editor/src/element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 3ae4713ee4ce337b0d535a89da4c1246a024f6ad..d613e11f680b591aada745c6ce62b0478055249a 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -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() });