diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-14 10:33:00 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-14 10:33:00 -0400 |
commit | 18ddb386325e9a017df45825ace6d667c90ac3e5 (patch) | |
tree | 469505bb06b44083bf5282a3b0bf8ff6487efff3 /src/commands/delete_files.rs | |
parent | 59ebe918aa4d6753cf061f08b38b84a9d11640e1 (diff) |
update preview when file operations finish
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r-- | src/commands/delete_files.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs index 30a5754..9e302b0 100644 --- a/src/commands/delete_files.rs +++ b/src/commands/delete_files.rs @@ -3,7 +3,7 @@ use std::path; use termion::event::Key; -use crate::commands::{JoshutoCommand, JoshutoRunnable, ReloadDirList}; +use crate::commands::{CursorMoveStub, JoshutoCommand, JoshutoRunnable, ReloadDirList}; use crate::context::JoshutoContext; use crate::error::JoshutoResult; use crate::ui::TuiBackend; @@ -90,6 +90,7 @@ impl std::fmt::Display for DeleteFiles { impl JoshutoRunnable for DeleteFiles { fn execute(&self, context: &mut JoshutoContext, backend: &mut TuiBackend) -> JoshutoResult<()> { Self::delete_files(context, backend)?; + CursorMoveStub::new().execute(context, backend)?; Ok(()) } } |