Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use proper path separator for multi buffer headers (#23635)
Kirill Bulatov392b95b17916
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex c27daf2aeeb..24ee1117e5f 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -2612,9 +2612,9 @@ impl EditorElement {let filename = path.as_ref().and_then(|path| Some(path.file_name()?.to_string_lossy().to_string()));- let parent_path = path- .as_ref()- .and_then(|path| Some(path.parent()?.to_string_lossy().to_string() + "/"));+ let parent_path = path.as_ref().and_then(|path| {+ Some(path.parent()?.to_string_lossy().to_string() + std::path::MAIN_SEPARATOR_STR)+ });let focus_handle = self.editor.focus_handle(cx);let colors = cx.theme().colors();