From fe03cc22e6b7e213ff349ce1237fffbf1a9bfbe0 Mon Sep 17 00:00:00 2001 From: kaiba Date: Thu, 16 Jan 2025 22:02:38 +0900 Subject: [PATCH] [ruby/reline] Fix typo: marco -> macro (https://github.com/ruby/reline/pull/806) https://github.com/ruby/reline/commit/2111172302 --- lib/reline/key_stroke.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/reline/key_stroke.rb b/lib/reline/key_stroke.rb index c3cee3d241..4999225c9b 100644 --- a/lib/reline/key_stroke.rb +++ b/lib/reline/key_stroke.rb @@ -56,8 +56,8 @@ class Reline::KeyStroke if func.is_a?(Array) # Perform simple macro expansion for single byte key bindings. # Multibyte key bindings and recursive macro expansion are not supported yet. - marco = func.pack('c*').force_encoding(@encoding) - keys = marco.chars.map do |c| + macro = func.pack('c*').force_encoding(@encoding) + keys = macro.chars.map do |c| f = key_mapping.get(c.bytes) Reline::Key.new(c, f.is_a?(Symbol) ? f : :ed_insert, false) end