summaryrefslogtreecommitdiffstats
path: root/src/commands/delete_files.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-01 15:01:21 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-01 15:01:21 -0500
commit6b84901e50bfc0052fd93daed4b5b742db96447d (patch)
tree125d8a90ac2129f845eeb437682c644697bd8f16 /src/commands/delete_files.rs
parent49efef05db72fcff88a8986c0ccb65e7eef016f1 (diff)
add support for showing mimetype options with open_with
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r--src/commands/delete_files.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs
index 78344d1..d89a17d 100644
--- a/src/commands/delete_files.rs
+++ b/src/commands/delete_files.rs
@@ -52,19 +52,19 @@ impl DeleteFiles {
}
let ch = {
- let prompt_str = format!("Delete {} files? (y/N)", paths_len);
+ let prompt_str = format!("Delete {} files? (Y/n)", paths_len);
let mut prompt = TuiPrompt::new(&prompt_str);
prompt.get_key(backend, &context)
};
- if ch == Key::Char('y') {
+ if ch == Key::Char('y') || ch == Key::Char('\n') {
if paths_len > 1 {
let ch = {
- let prompt_str = "Are you sure? (Y/n)";
+ let prompt_str = "Are you sure? (y/N)";
let mut prompt = TuiPrompt::new(prompt_str);
prompt.get_key(backend, &context)
};
- if ch == Key::Char('y') || ch == Key::Char('\n') {
+ if ch == Key::Char('y') {
Self::remove_files(&paths)?;
ReloadDirList::reload(context.curr_tab_index, context)?;
let msg = format!("Deleted {} files", paths_len);