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:
parent
b3627c475e
commit
743326faee
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ class Pry
|
||||||
max_width = lines.last.last.to_s.length if lines.length > 0
|
max_width = lines.last.last.to_s.length if lines.length > 0
|
||||||
lines.each do |l|
|
lines.each do |l|
|
||||||
padded_line_num = l[1].to_s.rjust(max_width)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue