mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add round-robin variable
This commit is contained in:
parent
559dca509d
commit
822468307b
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ class Reline::KeyStroke
|
|||
end
|
||||
when :unmatched
|
||||
if buffer.size == 1 and c == "\e".ord
|
||||
read_escaped_key(buffer, block)
|
||||
read_escaped_key(keyseq_timeout, buffer, block)
|
||||
else
|
||||
block.(buffer.map{ |c| Reline::Key.new(c, c, false) })
|
||||
end
|
||||
|
@ -67,7 +67,7 @@ class Reline::KeyStroke
|
|||
end
|
||||
end
|
||||
|
||||
def read_escaped_key(buffer, block)
|
||||
def read_escaped_key(keyseq_timeout, buffer, block)
|
||||
begin
|
||||
escaped_c = nil
|
||||
Timeout.timeout(keyseq_timeout / 1000.0) {
|
||||
|
|
Loading…
Reference in a new issue