mirror of https://github.com/helix-editor/helix
feat: add main separator when showing current file's directory
parent
7fdf2ba92a
commit
f193705ca7
|
@ -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| {
|
||||||
|
|
Loading…
Reference in New Issue