summaryrefslogtreecommitdiffstats
path: root/src/commands/change_directory.rs
diff options
context:
space:
mode:
authorAzad <49314270+Akmadan23@users.noreply.github.com>2024-03-11 02:16:17 +0100
committerGitHub <noreply@github.com>2024-03-10 21:16:17 -0400
commitcd9331483e518f76f2d5aca3ae708f5e49ade0c5 (patch)
tree82feaabeda2227acfe75c1b1b1135ea75a3e6059 /src/commands/change_directory.rs
parent4267cb55085b24770ee35c841c940f8ea7233445 (diff)
feat: add `case_sensitive_ext` option for mimetype, theme and icons (#497)
* feat: add `case_sensitive_ext` option for mimetype, theme and icons * Clone `CONFIG_T` instead of initializing it twice * Reimplement without `CONFIG_T` as static ref * Clippy & fmt
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(())
}