Skip to content

Commit

Permalink
Color line numbers according to the pry theme, do not hardcode blue.
Browse files Browse the repository at this point in the history
  • Loading branch information
banister committed Jul 1, 2012
1 parent b3627c4 commit 743326f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/code.rb
Expand Up @@ -317,7 +317,7 @@ def to_s
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

Expand Down

0 comments on commit 743326f

Please sign in to comment.