Skip to content

Commit cf78a38

Browse files
committed
Support for key bindings result Symbol in Reline::Key
1 parent 1fc3276 commit cf78a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def match?(key)
2222
(key.char.nil? or char.nil? or char == key.char) and
2323
(key.combined_char.nil? or combined_char.nil? or combined_char == key.combined_char) and
2424
(key.with_meta.nil? or with_meta.nil? or with_meta == key.with_meta)
25-
elsif key.is_a?(Integer)
25+
elsif key.is_a?(Integer) or key.is_a?(Symbol)
2626
if not combined_char.nil? and combined_char == key
2727
true
2828
elsif not char.nil? and char == key

0 commit comments

Comments
 (0)