From 9d7049992c9f774f4f09130beabf7309d7befd09 Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 17:08:08 +0000 Subject: [PATCH] Fix another case where we could apply highlights with wrong indices (#50367) (cherry-pick to stable) (#50508) Cherry-pick of #50367 to stable ---- Closes #ISSUE Release Notes: - N/A 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 7dfae8cfa09d4d8305954a6e04fe4ddd5c9033db..f015cf81662f408b7f45d50a62ece48851f6d6c9 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -7954,7 +7954,7 @@ fn apply_dirty_filename_style( text_style: &gpui::TextStyle, cx: &App, ) -> Option { - let text = segment.text.replace('\n', "⏎"); + let text = segment.text.replace('\n', " "); let filename_position = std::path::Path::new(&segment.text) .file_name()