feat: add main separator when showing current file's directory

This commit is contained in:
Nikita Revenco 2025-02-18 15:38:56 +00:00
parent 7fdf2ba92a
commit f193705ca7

View file

@ -439,7 +439,7 @@ pub fn file_explorer(
path,
|path| {
path.parent()
.map(|p| p.display().to_string())
.map(|p| format!("{}{}", p.display(), std::path::MAIN_SEPARATOR))
.unwrap_or_default()
},
|cursor, cx, path, to_create_str| {
@ -609,7 +609,7 @@ pub fn file_explorer(
path,
|path| {
path.parent()
.map(|p| p.display().to_string())
.map(|p| format!("{}{}", p.display(), std::path::MAIN_SEPARATOR))
.unwrap_or_default()
},
|cursor, cx, copy_from, copy_to_str| {