Skip to content

Commit

Permalink
Update say to always flush the output after a puts
Browse files Browse the repository at this point in the history
  • Loading branch information
blipper authored Aug 27, 2024
1 parent 3de8af1 commit 64f5e5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/highline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def say(statement)
output.flush
else
output.puts(statement)
output.flush # Buffer might not flush always re: https://stackoverflow.com/questions/63744814/puts-doesnt-flush-the-buffer-in-io-redirection-program
end
end

Expand Down

0 comments on commit 64f5e5e

Please sign in to comment.