summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2019-09-08 16:24:48 (GMT)
committeraycabta <aycabta@gmail.com>2019-09-09 10:16:01 (GMT)
commit551edf64bcbbbc84af59b5ae44a0820314b72777 (patch)
treed5465b0bd06d560f4e9e1cb5f8acd56a72c207a2
parent8c09de38c5f2dab324bcb30ab4a8db9bd55357b2 (diff)
Reline: Fix wrong variable name
This raised a NameError before.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2438
-rw-r--r--lib/reline.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index ef9c776..f8ffd5a 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -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) {