summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-21 12:39:18 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-21 12:39:18 -0400
commitf2815145cb3da431ebeaf154b8d9964331d6cd4c (patch)
treed87b25cfca25cfd46cf8565da251698d0c3ced0f
parente1998c81383a6929bff21a17ac08c16eea0e945a (diff)
fix open_file not forking properly
-rw-r--r--src/commands/open_file.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs
index 66c514c..dc2bb13 100644
--- a/src/commands/open_file.rs
+++ b/src/commands/open_file.rs
@@ -76,12 +76,12 @@ impl OpenFile {
let entry_paths: Vec<&Path> = entries.iter().map(|e| e.file_path().as_path()).collect();
if !options.is_empty() {
let res = if options[0].get_fork() {
+ options[0].execute_with(entry_paths.as_slice())
+ } else {
backend.terminal_drop();
let res = options[0].execute_with(entry_paths.as_slice());
backend.terminal_restore()?;
res
- } else {
- options[0].execute_with(entry_paths.as_slice())
};
return res;
} else {