lib/pry-theme.rb in pry-theme-0.0.6 vs lib/pry-theme.rb in pry-theme-0.0.7
- old
+ new
@@ -99,17 +99,17 @@
if color
m = color.match(color_pattern)
color_fg = if $2
- palette.colors.find do |color|
+ c = palette.colors.find do |color|
color.human == $2.to_sym
end
if c
c.term
else
- raise NoColorError unless c
+ raise NoColorError
end
end
formatting = if $5
formatting = $5.each_char.map do |ch|