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:
parent
73890d9d79
commit
21a43489b1
1 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue