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

Pass actual terminal width into pp

This commit is contained in:
Ryan Fitzgerald 2013-11-09 12:53:39 -08:00
parent edc8ff6966
commit 1836a02572

View file

@ -22,7 +22,7 @@ class Pry
DEFAULT_PRINT = proc do |output, value|
Pry::Pager.with_pager(output) do |pager|
pager.print "=> "
Pry::ColorPrinter.pp(value, pager)
Pry::ColorPrinter.pp(value, pager, Pry::Terminal.width! - 1)
end
end