Skip to content

Commit

Permalink
Fix to correspond to frozen_string_literal
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Oct 14, 2023
1 parent b442c57 commit 389ff41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reline/face.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sgr_rgb(key, value)
end

def format_to_sgr(values)
"\e[" << values.map do |key, value|
"\e[" + values.map do |key, value|
case key
when :foreground, :background
case value
Expand All @@ -101,7 +101,7 @@ def format_to_sgr(values)
end
rendition_expression
end
end.join(';') << "m"
end.join(';') + "m"
end

def rgb_expression?(color)
Expand Down

0 comments on commit 389ff41

Please sign in to comment.