mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
8913b9b742
commit
d07060c42a
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ class Reline::KeyStroke
|
||||||
key_mapping.keys.select { |lhs|
|
key_mapping.keys.select { |lhs|
|
||||||
lhs.start_with? input
|
lhs.start_with? input
|
||||||
}.tap { |it|
|
}.tap { |it|
|
||||||
return :matched 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.max_by(&:size)&.!= input)
|
return :matching if it.size == 1 && (it[0] != input)
|
||||||
return :matched if it.max_by(&:size)&.size&.< input.size
|
return :matched if it.max_by(&:size)&.size&.< input.size
|
||||||
return :matching if it.size > 1
|
return :matching if it.size > 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue