diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-25 09:34:14 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-25 09:34:14 -0400 |
commit | 8d2db42a122736cee7482b79d2afbdadc146f51b (patch) | |
tree | be31f161fa438ce15146de860dda894ed6820a3e /src/commands/reload_dir.rs | |
parent | 53f530a1ec26fce4664634f9c22fbb51b12c3f42 (diff) |
fix previews not updating when reload_dir is called
Diffstat (limited to 'src/commands/reload_dir.rs')
-rw-r--r-- | src/commands/reload_dir.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/reload_dir.rs b/src/commands/reload_dir.rs index 6d52b97..8958671 100644 --- a/src/commands/reload_dir.rs +++ b/src/commands/reload_dir.rs @@ -42,10 +42,11 @@ impl JoshutoRunnable for ReloadDirList { view: &JoshutoView, ) -> Result<(), JoshutoError> { match Self::reload(context, view) { - Ok(_) => {} + Ok(_) => { + ncurses::doupdate(); + Ok(()) + } Err(e) => return Err(JoshutoError::IO(e)), } - ncurses::doupdate(); - Ok(()) } } |