We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36da0af commit 88c72b8Copy full SHA for 88c72b8
src/find/matchers/exec.rs
@@ -6,7 +6,7 @@
6
7
use std::error::Error;
8
use std::ffi::OsString;
9
-use std::io::{stderr, stdin, Write};
+use std::io::{stderr, stdin, stdout, Write};
10
use std::path::Path;
11
use std::process::Command;
12
use walkdir::DirEntry;
@@ -74,12 +74,13 @@ impl Matcher for SingleExecMatcher {
74
self.executable,
75
path_to_file.to_string_lossy()
76
);
77
- print!("{}", tips);
+ write!(stdout(), "{}", tips).unwrap();
78
+ stdout().flush().unwrap();
79
80
let mut input = String::new();
81
let _result = stdin().read_line(&mut input).unwrap();
- if input.trim().eq("n") {
82
- return true;
+ if !input.trim().contains("y") {
83
+ return false;
84
}
85
86
0 commit comments