Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix another case where we could apply highlights with wrong indices (#50367)
Conrad Irwin04fc31fc19d0
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 6fc2627533d..7b5530c6fc3 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -8070,7 +8070,7 @@ fn apply_dirty_filename_style(text_style: &gpui::TextStyle,cx: &App,) -> Option<gpui::AnyElement> {- let text = segment.text.replace('\n', "⏎");+ let text = segment.text.replace('\n', " ");let filename_position = std::path::Path::new(&segment.text).file_name()