summaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/tui_topbar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widgets/tui_topbar.rs')
-rw-r--r--src/ui/widgets/tui_topbar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widgets/tui_topbar.rs b/src/ui/widgets/tui_topbar.rs
index 0b9c7e8..74cd44b 100644
--- a/src/ui/widgets/tui_topbar.rs
+++ b/src/ui/widgets/tui_topbar.rs
@@ -42,7 +42,7 @@ impl<'a> Widget for TuiTopBar<'a> {
None => {}
}
}
- if self.context.config_ref().tilde_in_titlebar {
+ if self.context.display_options_ref().tilde_in_titlebar() {
if let Some(home_dir) = HOME_DIR.as_ref() {
let home_dir_str = home_dir.to_string_lossy().into_owned();
curr_path_str = curr_path_str.replace(&home_dir_str, "~");