summaryrefslogtreecommitdiffstats
path: root/src/commands/delete_files.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r--src/commands/delete_files.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs
index e72d364..3823f57 100644
--- a/src/commands/delete_files.rs
+++ b/src/commands/delete_files.rs
@@ -51,7 +51,11 @@ impl JoshutoRunnable for DeleteFiles {
if let Some(paths) = commands::collect_selected_paths(s) {
match Self::remove_files(paths) {
Ok(_) => ui::wprint_msg(&context.views.bot_win, "Deleted files"),
- Err(e) => ui::wprint_err(&context.views.bot_win, e.to_string().as_str()),
+ Err(e) => {
+ ui::wprint_err(&context.views.bot_win, e.to_string().as_str());
+ ncurses::doupdate();
+ return;
+ }
}
}
}