diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-24 14:47:19 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-24 14:47:19 -0500 |
commit | d3d95d53dd2ca734ea9abb820e98d49b5ad6199e (patch) | |
tree | 6525e15f45d534da6982c6385d15531d2edd26ee | |
parent | 8ed156ad708628cee49616a5163ea62f80b27dcb (diff) |
fix preview not changing when toggling hidden files
-rw-r--r-- | src/commands/show_hidden.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/commands/show_hidden.rs b/src/commands/show_hidden.rs index bf9de41..9263b90 100644 --- a/src/commands/show_hidden.rs +++ b/src/commands/show_hidden.rs @@ -1,5 +1,6 @@ use crate::commands::{JoshutoCommand, JoshutoRunnable}; use crate::context::JoshutoContext; +use crate::preview; #[derive(Clone, Debug)] pub struct ToggleHiddenFiles; @@ -41,7 +42,11 @@ impl JoshutoRunnable for ToggleHiddenFiles { &context.username, &context.hostname, ); - + preview::preview_file( + &mut context.tabs[context.curr_tab_index], + &context.views, + &context.config_t, + ); ncurses::doupdate(); } } |