summaryrefslogtreecommitdiffstats
path: root/src/commands/new_directory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/new_directory.rs')
-rw-r--r--src/commands/new_directory.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/commands/new_directory.rs b/src/commands/new_directory.rs
index 1f56521..482c84e 100644
--- a/src/commands/new_directory.rs
+++ b/src/commands/new_directory.rs
@@ -7,9 +7,15 @@ use crate::history::DirectoryHistory;
pub fn new_directory(context: &mut AppContext, p: &path::Path) -> JoshutoResult {
std::fs::create_dir_all(p)?;
let options = context.config_ref().display_options_ref().clone();
+ let tab_options = context
+ .tab_context_ref()
+ .curr_tab_ref()
+ .option_ref()
+ .clone();
let curr_path = context.tab_context_ref().curr_tab_ref().cwd().to_path_buf();
for tab in context.tab_context_mut().iter_mut() {
- tab.history_mut().reload(&curr_path, &options)?;
+ tab.history_mut()
+ .reload(&curr_path, &options, &tab_options)?;
}
Ok(())
}