summaryrefslogtreecommitdiffstats
path: root/src/commands/change_directory.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-02-20 19:54:37 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-02-20 19:54:37 -0500
commitc7497dd187e9729aef2630f22b481d02864ad3bb (patch)
treed48a7034209d27c4e3d686764d431466044d5bc7 /src/commands/change_directory.rs
parentf75182734a5bec0987b424aff28e2ed0acf2fe38 (diff)
cargo fmt
Diffstat (limited to 'src/commands/change_directory.rs')
-rw-r--r--src/commands/change_directory.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commands/change_directory.rs b/src/commands/change_directory.rs
index 4d2e722..bf29fe8 100644
--- a/src/commands/change_directory.rs
+++ b/src/commands/change_directory.rs
@@ -89,7 +89,11 @@ impl std::fmt::Display for ChangeDirectory {
impl JoshutoRunnable for ChangeDirectory {
fn execute(&self, context: &mut JoshutoContext) {
Self::change_directory(&self.path, context);
- preview::preview_file(&mut context.tabs[context.curr_tab_index], &context.views, &context.config_t);
+ preview::preview_file(
+ &mut context.tabs[context.curr_tab_index],
+ &context.views,
+ &context.config_t,
+ );
ncurses::doupdate();
}
}