summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaiba <[email protected]>2025-01-16 22:02:38 +0900
committergit <[email protected]>2025-01-16 13:02:45 +0000
commitfe03cc22e6b7e213ff349ce1237fffbf1a9bfbe0 (patch)
treec50ae84fbf86761a7b6cc1c0de54b4366eff066c
parent253329343cf7c82af8b456ab741ae4d863187bf4 (diff)
[ruby/reline] Fix typo: marco -> macro
(https://github.com/ruby/reline/pull/806) https://github.com/ruby/reline/commit/2111172302
-rw-r--r--lib/reline/key_stroke.rb4
1 files 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