Skip to content

Commit

Permalink
match: Print the actuall colour, not the spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pazdera committed Oct 20, 2014
1 parent c01c18d commit f350f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tco.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ def self.show_matching_colour(colour_spec)
colour_index = @colouring.palette.match_colour colour

fg = @colouring.get_best_font_colour colour
bg = colour
bg = @colouring.palette.colours[colour_index]

puts Tco::colour fg, bg, " "*9
puts Tco::colour fg, bg, colour_index.to_s.center(9)
puts Tco::colour fg, bg, colour.to_s.center(9)
puts Tco::colour fg, bg, bg.to_s.center(9)
puts Tco::colour fg, bg, " "*9
end

Expand Down

0 comments on commit f350f53

Please sign in to comment.