mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Get rid of IO.select
to fix multiline paste
This commit is contained in:
parent
5b1fd79ad9
commit
ae83dbe28d
1 changed files with 1 additions and 8 deletions
|
@ -24,14 +24,7 @@ class Reline::ANSI
|
|||
unless @@buf.empty?
|
||||
return @@buf.shift
|
||||
end
|
||||
c = nil
|
||||
loop do
|
||||
result = select([@@input], [], [], 0.001)
|
||||
next if result.nil?
|
||||
c = @@input.read(1)
|
||||
break
|
||||
end
|
||||
c&.ord
|
||||
@@input.getbyte
|
||||
end
|
||||
|
||||
def self.ungetc(c)
|
||||
|
|
Loading…
Add table
Reference in a new issue