diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-20 19:12:10 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-20 19:12:52 -0500 |
commit | c829e7849a44922cb55149f3874a82cda1040c89 (patch) | |
tree | e8e167eef9f0d5bb8d1e008c1bc2bb9936646718 /src/commands/change_directory.rs | |
parent | 412b1ebb44382522084f615d58cb75374bc64778 (diff) |
change how preview works
Diffstat (limited to 'src/commands/change_directory.rs')
-rw-r--r-- | src/commands/change_directory.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/change_directory.rs b/src/commands/change_directory.rs index 87a23bb..4d2e722 100644 --- a/src/commands/change_directory.rs +++ b/src/commands/change_directory.rs @@ -89,7 +89,7 @@ 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(context); + preview::preview_file(&mut context.tabs[context.curr_tab_index], &context.views, &context.config_t); ncurses::doupdate(); } } |