diff --git a/lib/irb/debug/ui.rb b/lib/irb/debug/ui.rb index 7a1cd6dd1..a21ec6b11 100644 --- a/lib/irb/debug/ui.rb +++ b/lib/irb/debug/ui.rb @@ -45,9 +45,7 @@ def puts str = nil $stdout.puts line.chomp } when String - str.each_line{|line| - $stdout.puts line.chomp - } + Pager.page_content(str, retain_content: true) when nil $stdout.puts end