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:
parent
3773296bfc
commit
7de2c9a966
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue