Skip to content
This repository has been archived by the owner on May 29, 2021. It is now read-only.

Commit

Permalink
Flush stdout buffer at the end of the line
Browse files Browse the repository at this point in the history
  • Loading branch information
livingsilver94 committed Sep 3, 2018
1 parent 531be57 commit ca5ca87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub fn concat(options: &CatOptions, filenames: &[&str]) -> Result<(), Error> {
stdout_handle.write_all(&buf)?;
}
buf.clear();
stdout_handle.flush()?;
}
}
}
Expand Down

0 comments on commit ca5ca87

Please sign in to comment.