diff options
author | rabite <rabite@posteo.de> | 2019-04-07 14:00:50 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-04-07 14:00:50 +0200 |
commit | 63fe77c997fe8a5807fde1836a85d72b7694021d (patch) | |
tree | bb9a0529c8cc697609f64e45f00dea2e58cb5c1e /src/proclist.rs | |
parent | 7f70fa29046e09be414b52ba572eb9675979cd46 (diff) | |
parent | 62474ff6bcbd78745a66a753cb5d3578ba52bc05 (diff) |
Merge branch 'master' into evilv1.0-evil
Diffstat (limited to 'src/proclist.rs')
-rw-r--r-- | src/proclist.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/proclist.rs b/src/proclist.rs index 74912ea..69dc1e8 100644 --- a/src/proclist.rs +++ b/src/proclist.rs @@ -51,6 +51,8 @@ impl Cmd { } fn substitute_cwd_files(&mut self, cmd: Vec<OsString>) -> Vec<OsString> { + if self.cwd_files.is_none() { return cmd; } + let cwd_pat = OsString::from("$s"); let cwd_files = self.cwd_files .take() @@ -66,6 +68,8 @@ impl Cmd { } fn substitute_tab_files(&mut self, cmd: Vec<OsString>) -> Vec<OsString> { + if self.tab_files.is_none() { return cmd; } + let tab_files = self.tab_files.take().unwrap(); tab_files.into_iter() @@ -84,6 +88,8 @@ impl Cmd { } fn substitute_tab_paths(&mut self, cmd: Vec<OsString>) -> Vec<OsString> { + if self.tab_paths.is_none() { return cmd; } + let tab_paths = self.tab_paths.take().unwrap(); tab_paths.into_iter() |