diff options
Diffstat (limited to 'lib/reline/key_stroke.rb')
-rw-r--r-- | lib/reline/key_stroke.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline/key_stroke.rb b/lib/reline/key_stroke.rb index e097924aec..3b3f16ed77 100644 --- a/lib/reline/key_stroke.rb +++ b/lib/reline/key_stroke.rb @@ -70,8 +70,8 @@ class Reline::KeyStroke key_mapping.keys.select { |lhs| lhs.start_with? input }.tap { |it| - return :matched if it.size == 1 && (it.max_by(&:size)&.== input) - return :matching if it.size == 1 && (it.max_by(&:size)&.!= input) + return :matched if it.size == 1 && (it[0] == input) + return :matching if it.size == 1 && (it[0] != input) return :matched if it.max_by(&:size)&.size&.< input.size return :matching if it.size > 1 } |