diff options
Diffstat (limited to 'libio/iostream.cc')
-rw-r--r-- | libio/iostream.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libio/iostream.cc b/libio/iostream.cc index 4b75fca764d..cabda6bfede 100644 --- a/libio/iostream.cc +++ b/libio/iostream.cc @@ -963,7 +963,9 @@ ostream& ends(ostream& outs) ostream& endl(ostream& outs) { - return flush(outs.put('\n')); + if (opfx) + flush(outs.put('\n')); + return outs; } istream& lock(istream& ins) |