1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Color line numbers according to the pry theme, do not hardcode blue.

This commit is contained in:
John Mair 2012-07-02 03:36:46 +12:00
parent b3627c475e
commit 743326faee

View file

@ -317,7 +317,7 @@ class Pry
max_width = lines.last.last.to_s.length if lines.length > 0
lines.each do |l|
padded_line_num = l[1].to_s.rjust(max_width)
l[0] = "#{Pry::Helpers::Text.blue(padded_line_num)}: #{l[0]}"
l[0] = "#{Pry::Helpers::BaseHelpers.colorize_code(padded_line_num.to_s)}: #{l[0]}"
end
end