summaryrefslogtreecommitdiffstats
path: root/src/verb/external_execution.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-05-16 11:05:16 +0200
committerCanop <cano.petrole@gmail.com>2020-05-16 11:05:16 +0200
commit2b020b395a0f71e82639569932ee1d2c0ee09ed3 (patch)
treece80eb928b545b49d9175ef452f0b04ea4361bb7 /src/verb/external_execution.rs
parent01027934dd13ae176ed192484419b09a2686dc6d (diff)
fill the input when executing commands of --cmd
Diffstat (limited to 'src/verb/external_execution.rs')
-rw-r--r--src/verb/external_execution.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/verb/external_execution.rs b/src/verb/external_execution.rs
index 56aabbb..2e53cc7 100644
--- a/src/verb/external_execution.rs
+++ b/src/verb/external_execution.rs
@@ -34,7 +34,6 @@ fn determine_arg_selection_type(args: &str) -> Option<SelectionType> {
GROUP
.find(args)
.filter(|m| {
- info!(" m: {:?}", m);
m.start() == 0 && m.end() == args.len()
})
.map(|_| SelectionType::Any)
@@ -132,7 +131,7 @@ impl ExternalExecution {
map.insert("file".to_string(), file_str.to_string());
map.insert("parent".to_string(), parent_str.to_string());
let dir_str = if file.is_dir() { file_str } else { parent_str };
- map.insert("directory".to_string(), dir_str.to_string());
+ map.insert("directory".to_string(), dir_str);
// then the ones computed from the user input
let default_args;
let args = match args {