From 21a43489b18d2ceb04182e0d36bb906439a86610 Mon Sep 17 00:00:00 2001 From: aycabta Date: Fri, 31 May 2019 22:53:01 +0900 Subject: [PATCH] Use IO#sync= instead of a monkey patch --- lib/reline.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/reline.rb b/lib/reline.rb index 5f3c0e416e..55e5c5ee61 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -304,13 +304,7 @@ module Reline def inner_readline(prompt, add_hist, multiline, &confirm_multiline_termination) if ENV['RELINE_STDERR_TTY'] $stderr.reopen(ENV['RELINE_STDERR_TTY'], 'w') - class << $stderr - alias :old_puts :puts - def puts(*v) - old_puts(*v) - flush - end - end + $stderr.sync = true end @@config.read otio = Reline::IOGate.prep