summaryrefslogtreecommitdiffstats
path: root/src/commands/delete_files.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-02-25 13:18:10 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-02-25 13:23:17 -0500
commit2ed8a79d7ba89bd37b89c1cd853ead3adb59347a (patch)
tree81fc8ed2c72170d9009e67762a1395bb01b0b396 /src/commands/delete_files.rs
parent25d52bebb94b7a9dcaf45d839fd320b6fa3a3782 (diff)
add verbose messages for file operations
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;
+ }
}
}
}