Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

project: Fix content not displaying when selecting a folder in Windows (#18946)

Lilith Irisfcf9e546da87
diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs
index f4d02f47f3e..68f07f1ca91 100644
--- a/crates/project/src/project.rs
+++ b/crates/project/src/project.rs
@@ -3969,7 +3969,7 @@ impl<'a> fuzzy::PathMatchCandidateSet<'a> for PathMatchCandidateSet {
if self.snapshot.root_entry().map_or(false, |e| e.is_file()) {
self.snapshot.root_name().into()
} else if self.include_root_name {
- format!("{}/", self.snapshot.root_name()).into()
+ format!("{}{}", self.snapshot.root_name(), std::path::MAIN_SEPARATOR).into()
} else {
Arc::default()
}