summaryrefslogtreecommitdiffstats
path: root/src/commands/change_directory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/change_directory.rs')
-rw-r--r--src/commands/change_directory.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/commands/change_directory.rs b/src/commands/change_directory.rs
index 2e5196e..220ca59 100644
--- a/src/commands/change_directory.rs
+++ b/src/commands/change_directory.rs
@@ -28,6 +28,7 @@ pub fn change_directory(context: &mut AppContext, mut path: &path::Path) -> AppR
};
cd(new_cwd.as_path(), context)?;
+ let config = context.config_ref().clone();
let options = context.config_ref().display_options_ref().clone();
let ui_context = context.ui_context_ref().clone();
let tab_options = context
@@ -39,7 +40,13 @@ pub fn change_directory(context: &mut AppContext, mut path: &path::Path) -> AppR
.tab_context_mut()
.curr_tab_mut()
.history_mut()
- .populate_to_root(new_cwd.as_path(), &ui_context, &options, &tab_options)?;
+ .populate_to_root(
+ new_cwd.as_path(),
+ &config,
+ &ui_context,
+ &options,
+ &tab_options,
+ )?;
Ok(())
}