Browse Source

conf.rs: flush stdout in Ask() after printing

master
Geoff Beier 3 weeks ago
committed by Manos Pitsidianakis
parent
commit
330a2b20ed
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 2
      src/conf.rs

2
src/conf.rs

@ -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…
Cancel
Save