[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
|
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)
|
def match?(other)
|
||||||
case other
|
case other
|
||||||
when Reline::Key
|
when Reline::Key
|
||||||
|
@ -48,8 +48,8 @@ class Reline::LineEditor
|
|||||||
PERFECT_MATCH = :perfect_match
|
PERFECT_MATCH = :perfect_match
|
||||||
end
|
end
|
||||||
|
|
||||||
CompletionJourneyData = Struct.new('CompletionJourneyData', :preposing, :postposing, :list, :pointer)
|
CompletionJourneyData = Struct.new(:preposing, :postposing, :list, :pointer)
|
||||||
MenuInfo = Struct.new('MenuInfo', :target, :list)
|
MenuInfo = Struct.new(:target, :list)
|
||||||
|
|
||||||
PROMPT_LIST_CACHE_TIMEOUT = 0.5
|
PROMPT_LIST_CACHE_TIMEOUT = 0.5
|
||||||
MINIMUM_SCROLLBAR_HEIGHT = 1
|
MINIMUM_SCROLLBAR_HEIGHT = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user