Fix retry in Windows (fix #69)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user