1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Use combined_key if it exists when comparing Reline::Key and Integer

https://github.com/ruby/reline/commit/8fca5f6f9c
This commit is contained in:
aycabta 2021-09-06 04:02:31 +09:00 committed by git
parent 3773296bfc
commit 7de2c9a966

View file

@ -25,7 +25,7 @@ module Reline
elsif key.is_a?(Integer) or key.is_a?(Symbol)
if not combined_char.nil? and combined_char == key
true
elsif not char.nil? and char == key
elsif combined_char.nil? and not char.nil? and char == key
true
else
false