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:
parent
8c09de38c5
commit
551edf64bc
Notes:
git
2019-09-09 19:16:29 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue