summaryrefslogtreecommitdiff
path: root/lib/reline/key_stroke.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-05-25 08:24:41 +0900
committeraycabta <aycabta@gmail.com>2019-05-25 08:24:41 +0900
commit19430b776c3ebae1adfdc5cbe6cdf69a92e37253 (patch)
tree8d03763fd56710d31684cec0b91c29b8fe7f1b94 /lib/reline/key_stroke.rb
parent822468307b1a54eccd2711300008a3974c15141e (diff)
Fix wrong variable name
Diffstat (limited to 'lib/reline/key_stroke.rb')
-rw-r--r--lib/reline/key_stroke.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/key_stroke.rb b/lib/reline/key_stroke.rb
index 22e2e98c01..64f3ed687d 100644
--- a/lib/reline/key_stroke.rb
+++ b/lib/reline/key_stroke.rb
@@ -31,7 +31,7 @@ class Reline::KeyStroke
result = match_status(buffer)
case result
when :matched
- block.(expand(bytes).map{ |c| Reline::Key.new(c, c, false) })
+ block.(expand(buffer).map{ |c| Reline::Key.new(c, c, false) })
break
when :matching
if buffer.size == 1