diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-21 12:39:18 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-21 12:39:18 -0400 |
commit | f2815145cb3da431ebeaf154b8d9964331d6cd4c (patch) | |
tree | d87b25cfca25cfd46cf8565da251698d0c3ced0f /src/commands | |
parent | e1998c81383a6929bff21a17ac08c16eea0e945a (diff) |
fix open_file not forking properly
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/open_file.rs | 4 |
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 { |