summaryrefslogtreecommitdiffstats
path: root/src/commands/delete_files.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-30 10:52:12 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-30 10:52:12 -0400
commit242bae74d7b97e4542afbd9b1c708b45919e9695 (patch)
tree30523aa94179d7535982ac5dfb2c9d0c21c8a566 /src/commands/delete_files.rs
parent9a082fe7f0633593a6e07feb404f6434bb944511 (diff)
add bulk_rename command
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r--src/commands/delete_files.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs
index ac66c9d..adaed07 100644
--- a/src/commands/delete_files.rs
+++ b/src/commands/delete_files.rs
@@ -77,7 +77,12 @@ impl JoshutoRunnable for DeleteFiles {
fn execute(&self, context: &mut JoshutoContext, view: &JoshutoView) -> JoshutoResult<()> {
Self::delete_files(context, view)?;
let curr_tab = &mut context.tabs[context.curr_tab_index];
- curr_tab.refresh(view, &context.config_t);
+ curr_tab.refresh_curr(&view.mid_win, &context.config_t);
+ if context.config_t.show_preview {
+ curr_tab.refresh_preview(&view.right_win, &context.config_t);
+ }
+ curr_tab.refresh_path_status(&view.top_win, &context.config_t);
+ curr_tab.refresh_file_status(&view.bot_win);
ncurses::doupdate();
Ok(())
}