summaryrefslogtreecommitdiffstats
path: root/src/key_command/impl_comment.rs
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2022-07-18 12:06:49 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2022-07-18 12:06:49 -0400
commit743354da056c65c6ce0910394230270ef793d8cc (patch)
tree22795339118dfdf2e819a03fa3b8081d87226339 /src/key_command/impl_comment.rs
parenteb8b155329b2c2689cc5b854f0b87f4448485c66 (diff)
asynchronize delete operation
Diffstat (limited to 'src/key_command/impl_comment.rs')
-rw-r--r--src/key_command/impl_comment.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/key_command/impl_comment.rs b/src/key_command/impl_comment.rs
index bd5e4e6..c441a6b 100644
--- a/src/key_command/impl_comment.rs
+++ b/src/key_command/impl_comment.rs
@@ -1,5 +1,5 @@
use crate::config::option::SortType;
-use crate::io::IoWorkerOptions;
+use crate::io::FileOperationOptions;
use super::{Command, CommandComment};
@@ -27,9 +27,10 @@ impl CommandComment for Command {
Self::CutFiles => "Cut selected files",
Self::CopyFiles => "Copy selected files",
- Self::PasteFiles(IoWorkerOptions {
+ Self::PasteFiles(FileOperationOptions {
overwrite,
skip_exist,
+ ..
}) => match (overwrite, skip_exist) {
(true, false) => "Paste, overwrite",
(false, true) => "Paste, skip existing files",