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/reload_dir.rs | |
parent | 412b1ebb44382522084f615d58cb75374bc64778 (diff) |
change how preview works
Diffstat (limited to 'src/commands/reload_dir.rs')
-rw-r--r-- | src/commands/reload_dir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/reload_dir.rs b/src/commands/reload_dir.rs index 20981bc..0eff65f 100644 --- a/src/commands/reload_dir.rs +++ b/src/commands/reload_dir.rs @@ -36,7 +36,7 @@ impl std::fmt::Display for ReloadDirList { impl JoshutoRunnable for ReloadDirList { fn execute(&self, context: &mut JoshutoContext) { Self::reload(context); - preview::preview_file(context); + preview::preview_file(&mut context.tabs[context.curr_tab_index], &context.views, &context.config_t); ncurses::doupdate(); } } |