aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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