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

Reline: Fix wrong variable name

This raised a NameError before.
This commit is contained in:
Lars Kanis 2019-09-08 18:24:48 +02:00 committed by aycabta
parent 8c09de38c5
commit 551edf64bc
Notes: git 2019-09-09 19:16:29 +09:00

View file

@ -287,7 +287,7 @@ module Reline
end
when :unmatched
if buffer.size == 1 and c == "\e".ord
read_escaped_key(keyseq_timeout, buffer, block)
read_escaped_key(keyseq_timeout, c, block)
else
block.(buffer.map{ |c| Reline::Key.new(c, c, false) })
end
@ -296,7 +296,7 @@ module Reline
end
end
private def read_escaped_key(keyseq_timeout, buffer, block)
private def read_escaped_key(keyseq_timeout, c, block)
begin
escaped_c = nil
Timeout.timeout(keyseq_timeout / 1000.0) {