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
1 changed files with 1 additions and 1 deletions

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