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
|
end
|
||||||
when :unmatched
|
when :unmatched
|
||||||
if buffer.size == 1 and c == "\e".ord
|
if buffer.size == 1 and c == "\e".ord
|
||||||
read_escaped_key(buffer, block)
|
read_escaped_key(keyseq_timeout, buffer, block)
|
||||||
else
|
else
|
||||||
block.(buffer.map{ |c| Reline::Key.new(c, c, false) })
|
block.(buffer.map{ |c| Reline::Key.new(c, c, false) })
|
||||||
end
|
end
|
||||||
|
@ -67,7 +67,7 @@ class Reline::KeyStroke
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def read_escaped_key(buffer, block)
|
def read_escaped_key(keyseq_timeout, buffer, block)
|
||||||
begin
|
begin
|
||||||
escaped_c = nil
|
escaped_c = nil
|
||||||
Timeout.timeout(keyseq_timeout / 1000.0) {
|
Timeout.timeout(keyseq_timeout / 1000.0) {
|
||||||
|
|
Loading…
Reference in a new issue