1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use IO#sync= instead of a monkey patch

This commit is contained in:
aycabta 2019-05-31 22:53:01 +09:00
parent 73890d9d79
commit 21a43489b1

View file

@ -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