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

pull/12902/head
Nikita Revenco 2025-02-18 15:38:56 +00:00
parent 7fdf2ba92a
commit f193705ca7
1 changed files with 2 additions and 2 deletions

View File

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