diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2024-03-10 21:19:00 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2024-03-10 21:19:00 -0400 |
commit | 9a185e3c2437e41ee08ef3d6f2e2616981e046e8 (patch) | |
tree | 012f3fdc712d849757f64dca1d71156c4d39ab35 /src/commands/new_directory.rs | |
parent | 8af827604620f8135c98d6f4c8e4b647c06d1c32 (diff) | |
parent | cd9331483e518f76f2d5aca3ae708f5e49ade0c5 (diff) |
Merge branch 'main' into dev
Diffstat (limited to 'src/commands/new_directory.rs')
-rw-r--r-- | src/commands/new_directory.rs | 3 |
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 { |