diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-01-18 22:28:54 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-01-18 22:52:44 -0800 |
commit | 82386f21b91383ac8074561ee563cb407fee16f9 (patch) | |
tree | 139cd45b7fe5bb33d9dab207accd763c6bc7892d /lib/irb | |
parent | a7d933e5021d1028d64a055b6dcf8631ea6a52c3 (diff) |
[ruby/irb] Use a real screen size for pp by default
https://github.com/ruby/irb/commit/9b9300dec2
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/color_printer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/color_printer.rb b/lib/irb/color_printer.rb index 73a150f881..34ba437c87 100644 --- a/lib/irb/color_printer.rb +++ b/lib/irb/color_printer.rb @@ -4,7 +4,7 @@ require 'irb/color' module IRB class ColorPrinter < ::PP - def self.pp(obj, out = $>, width = 79) + def self.pp(obj, out = $>, width = Reline.get_screen_size.last) q = ColorPrinter.new(out, width) q.guard_inspect_key {q.pp obj} q.flush |