summaryrefslogtreecommitdiffstats
path: root/src/ui/tab_list_builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tab_list_builder.rs')
-rw-r--r--src/ui/tab_list_builder.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/tab_list_builder.rs b/src/ui/tab_list_builder.rs
index 2fda926..953dfee 100644
--- a/src/ui/tab_list_builder.rs
+++ b/src/ui/tab_list_builder.rs
@@ -40,11 +40,12 @@ impl TabLabel {
let home_dir_str = home_dir.to_string_lossy().into_owned();
full_path_str = full_path_str.replace(&home_dir_str, "~");
}
+ eprintln!("full_path_str: {:?}", full_path_str);
let last = Path::new(&full_path_str)
.file_name()
- .unwrap()
+ .unwrap_or_default()
.to_str()
- .unwrap()
+ .unwrap_or_default()
.to_string();
TabLabel {
long: full_path_str,