[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:
Yuta Kusuno 2023-06-20 07:02:46 -07:00 committed by git
parent 932dd9f10e
commit 9ce6e09637
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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