Skip to content
Myr

Sort search results when using -X option

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by MarcoIeni · committed by David Peter · parent f7d1938 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:src/exec/mod.rs+4 added-2 removed
168 unmodified lines
169 cmd.stdin(Stdio::inherit());170 cmd.stdout(Stdio::inherit());171 cmd.stderr(Stdio::inherit());172173 let mut paths = paths.map(|p| Self::prepare_path(&p));173 let mut paths: Vec<String> = paths.map(|p| Self::prepare_path(&p)).collect();174 let mut has_path = false;175176 for arg in &self.args[1..] {177 if arg.has_tokens() {178 paths.sort();179180 // A single `Tokens` is expected179 // So we can directy consume the iterator once and for all181 // So we can directly consume the iterator once and for all182 for path in &mut paths {183 cmd.arg(arg.generate(&path).as_ref());184 has_path = true;185 }
166 unmodified lines