Skip to content

Commit 8fca5f6

Browse files
committed
Use combined_key if it exists when comparing Reline::Key and Integer
1 parent 731103f commit 8fca5f6

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
@@ -25,7 +25,7 @@ def match?(key)
2525
elsif key.is_a?(Integer) or key.is_a?(Symbol)
2626
if not combined_char.nil? and combined_char == key
2727
true
28-
elsif not char.nil? and char == key
28+
elsif combined_char.nil? and not char.nil? and char == key
2929
true
3030
else
3131
false

0 commit comments

Comments
 (0)