Fix retry in Windows (fix #69)

This commit is contained in:
Roey Darwish Dror
2018-09-14 13:30:45 +03:00
parent 9fac046f20
commit 588f76828f

View File

@@ -83,9 +83,9 @@ impl Terminal {
let _ = self.stdout.flush(); let _ = self.stdout.flush();
if stdin().read_line(&mut result).is_ok() { if stdin().read_line(&mut result).is_ok() {
match result.as_str() { match result.as_str().trim() {
"y\n" | "Y\n" => return true, "y" | "Y" => return true,
"n\n" | "N\n" | "\n" => return false, "n" | "N" | "" => return false,
_ => (), _ => (),
} }
} else { } else {