summaryrefslogtreecommitdiffstats
path: root/src/commands/new_directory.rs
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2024-03-10 21:19:00 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2024-03-10 21:19:00 -0400
commit9a185e3c2437e41ee08ef3d6f2e2616981e046e8 (patch)
tree012f3fdc712d849757f64dca1d71156c4d39ab35 /src/commands/new_directory.rs
parent8af827604620f8135c98d6f4c8e4b647c06d1c32 (diff)
parentcd9331483e518f76f2d5aca3ae708f5e49ade0c5 (diff)
Merge branch 'main' into dev
Diffstat (limited to 'src/commands/new_directory.rs')
-rw-r--r--src/commands/new_directory.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/new_directory.rs b/src/commands/new_directory.rs
index 32b248e..d4bd68d 100644
--- a/src/commands/new_directory.rs
+++ b/src/commands/new_directory.rs
@@ -7,12 +7,13 @@ use crate::history::DirectoryHistory;
pub fn new_directory(context: &mut AppContext, p: &path::Path) -> AppResult {
std::fs::create_dir_all(p)?;
+ let config = context.config_ref().clone();
let options = context.config_ref().display_options_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() {
let tab_options = tab.option_ref().clone();
tab.history_mut()
- .reload(&curr_path, &options, &tab_options)?;
+ .reload(&curr_path, &config, &options, &tab_options)?;
}
if context.config_ref().focus_on_create {