Skip to content

Commit

Permalink
Update add_default_key_binding to use a add_default_key_binding_by_ke…
Browse files Browse the repository at this point in the history
…ymap internally

Co-authored-by: Stan Lo <stan001212@gmail.com>
  • Loading branch information
tompng and st0012 authored Jun 3, 2024
1 parent 34d39c1 commit 346e2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def add_default_key_binding_by_keymap(keymap, keystroke, target)
end

def add_default_key_binding(keystroke, target)
@default_key_bindings[@keymap_label].add(keystroke, target)
add_default_key_binding_by_keymap(@keymap_label, keystroke, target)
end

def read_lines(lines, file = nil)
Expand Down

0 comments on commit 346e2da

Please sign in to comment.