Merge pull request #31 from programble/fix/stdin-lock

Fix main_interactive without linefeed
This commit is contained in:
Tiffany Bennett 2018-03-12 19:20:29 -07:00 committed by GitHub
commit d5aaddd1d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,7 +274,8 @@ fn main_interactive() {
// noninteractive version
#[cfg(not(feature = "linefeed"))]
fn main_interactive() {
main_noninteractive(stdin(), true);
let stdin = stdin();
main_noninteractive(stdin.lock(), true);
}
fn main() {