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/change_directory.rs | |
parent | 8af827604620f8135c98d6f4c8e4b647c06d1c32 (diff) | |
parent | cd9331483e518f76f2d5aca3ae708f5e49ade0c5 (diff) |
Merge branch 'main' into dev
Diffstat (limited to 'src/commands/change_directory.rs')
-rw-r--r-- | src/commands/change_directory.rs | 9 |
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(()) } |