summaryrefslogtreecommitdiffstats
path: root/src/commands/new_directory.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-12-15 11:48:20 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-12-15 11:48:20 -0500
commit12eb9eed1aeb4f3045b78dd19ae20d07bfea7de9 (patch)
treea2204b1fbef5f1ed93312f94196ded9a5a8c6ec5 /src/commands/new_directory.rs
parentf5902708a6e597064482edfc076248a67882b7c5 (diff)
add option to not collapse preview
- add methods to access config_t - add back home dir path shortening option
Diffstat (limited to 'src/commands/new_directory.rs')
-rw-r--r--src/commands/new_directory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/new_directory.rs b/src/commands/new_directory.rs
index 2c5fd57..6b17817 100644
--- a/src/commands/new_directory.rs
+++ b/src/commands/new_directory.rs
@@ -7,7 +7,7 @@ use crate::util::load_child::LoadChild;
pub fn new_directory(context: &mut JoshutoContext, p: &path::Path) -> JoshutoResult<()> {
std::fs::create_dir_all(p)?;
- let options = context.config_t.sort_option.clone();
+ let options = context.config_ref().sort_option.clone();
let curr_path = context.tab_context_ref().curr_tab_ref().pwd().to_path_buf();
for tab in context.tab_context_mut().iter_mut() {
tab.history_mut().reload(&curr_path, &options)?;