diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-28 22:19:16 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-28 22:19:16 -0400 |
commit | 58f6428e2aead58b7f930008b294ce56df59e3cb (patch) | |
tree | 1826c6bfce883fc62393cff071e4e336c39303c9 /src/unix.rs | |
parent | 21d426ee64ecacf39fb3ce32eaae5fdd9840c20c (diff) |
clean up how view is calculated
Diffstat (limited to 'src/unix.rs')
-rw-r--r-- | src/unix.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/unix.rs b/src/unix.rs index 39fe886e..3b61f93 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -76,10 +76,7 @@ pub fn open_with_entry(paths: &[&PathBuf], entry: &mimetype::JoshutoMimetypeEntr command.stderr(process::Stdio::null()); } - let args = entry.get_args(); - if args.len() > 0 { - command.args(args); - } + command.args(entry.get_args()); command.args(paths.iter().map(|path| path.as_os_str())); match command.spawn() { |