Skip to content

Commit

Permalink
[ruby/reline] Omit constant under Struct
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakusuno authored and matzbot committed Jun 20, 2023
1 parent 932dd9f commit 9ce6e09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/reline.rb
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/reline/line_editor.rb
Expand Up @@ -48,8 +48,8 @@ module CompletionState
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
Expand Down

0 comments on commit 9ce6e09

Please sign in to comment.