conf.rs: flush stdout in Ask() after printing
parent
36e29cb6fd
commit
330a2b20ed
|
@ -304,6 +304,7 @@ impl Ask {
|
|||
let mut handle = stdin.lock();
|
||||
|
||||
print!("{} [Y/n] ", &self.message);
|
||||
let _ = io::stdout().flush();
|
||||
loop {
|
||||
buffer.clear();
|
||||
handle
|
||||
|
@ -319,6 +320,7 @@ impl Ask {
|
|||
}
|
||||
_ => {
|
||||
print!("\n{} [Y/n] ", &self.message);
|
||||
let _ = io::stdout().flush();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue