feat: add main separator when showing current file's directory
This commit is contained in:
parent
7fdf2ba92a
commit
f193705ca7
1 changed files with 2 additions and 2 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Reference in a new issue