diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-18 22:55:09 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-18 22:55:09 -0400 |
commit | 06b2d7730d10240b471e859c7988ed219aa4c590 (patch) | |
tree | f5dcca189bb2d79c4def09540eec73cdb832c6b8 /src/commands/delete_files.rs | |
parent | f3081669e488c54ab4fcae2829ea2f58f082c6e7 (diff) |
remove cursormovestub and add rudimentary sort command
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r-- | src/commands/delete_files.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs index 9e302b0..628f324 100644 --- a/src/commands/delete_files.rs +++ b/src/commands/delete_files.rs @@ -3,12 +3,12 @@ use std::path; use termion::event::Key; -use crate::commands::{CursorMoveStub, JoshutoCommand, JoshutoRunnable, ReloadDirList}; +use crate::commands::{JoshutoCommand, JoshutoRunnable, ReloadDirList}; use crate::context::JoshutoContext; use crate::error::JoshutoResult; use crate::ui::TuiBackend; - use crate::ui::widgets::TuiPrompt; +use crate::util::load_child::LoadChild; #[derive(Clone, Debug)] pub struct DeleteFiles; @@ -90,7 +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)?; + LoadChild::load_child(context)?; Ok(()) } } |