Use proper path separator for multi buffer headers (#23635)
Before:  After:  Release Notes: - N/A
This commit is contained in:
parent
5f417eda25
commit
392b95b179
1 changed files with 3 additions and 3 deletions
|
@ -2612,9 +2612,9 @@ impl EditorElement {
|
|||
let filename = path
|
||||
.as_ref()
|
||||
.and_then(|path| Some(path.file_name()?.to_string_lossy().to_string()));
|
||||
let parent_path = path
|
||||
.as_ref()
|
||||
.and_then(|path| Some(path.parent()?.to_string_lossy().to_string() + "/"));
|
||||
let parent_path = path.as_ref().and_then(|path| {
|
||||
Some(path.parent()?.to_string_lossy().to_string() + std::path::MAIN_SEPARATOR_STR)
|
||||
});
|
||||
let focus_handle = self.editor.focus_handle(cx);
|
||||
let colors = cx.theme().colors();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue