[ruby/reline] Omit constant under Struct
(https://github.com/ruby/reline/pull/554) https://github.com/ruby/reline/commit/8761a11fa5
This commit is contained in:
parent
932dd9f10e
commit
9ce6e09637
@ -17,7 +17,7 @@ module Reline
|
||||
|
||||
class ConfigEncodingConversionError < StandardError; end
|
||||
|
||||
Key = Struct.new('Key', :char, :combined_char, :with_meta) do
|
||||
Key = Struct.new(:char, :combined_char, :with_meta) do
|
||||
def match?(other)
|
||||
case other
|
||||
when Reline::Key
|
||||
|
@ -48,8 +48,8 @@ class Reline::LineEditor
|
||||
PERFECT_MATCH = :perfect_match
|
||||
end
|
||||
|
||||
CompletionJourneyData = Struct.new('CompletionJourneyData', :preposing, :postposing, :list, :pointer)
|
||||
MenuInfo = Struct.new('MenuInfo', :target, :list)
|
||||
CompletionJourneyData = Struct.new(:preposing, :postposing, :list, :pointer)
|
||||
MenuInfo = Struct.new(:target, :list)
|
||||
|
||||
PROMPT_LIST_CACHE_TIMEOUT = 0.5
|
||||
MINIMUM_SCROLLBAR_HEIGHT = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user