Skip to content

Commit 8241ec9

Browse files
authored
Page the output in irb:rdbg sessions too (#1043)
IRB started to page its evaluation output and it became a useful feature for users. However, in `irb:rdbg` sessions, the output is not paged so the sudden change in behavior is surprising and inconvenient. This commit makes `irb:rdbg` sessions page the output of the debugger too.
1 parent 9eb14a3 commit 8241ec9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/irb/debug/ui.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ def puts str = nil
4545
$stdout.puts line.chomp
4646
}
4747
when String
48-
str.each_line{|line|
49-
$stdout.puts line.chomp
50-
}
48+
Pager.page_content(str, retain_content: true)
5149
when nil
5250
$stdout.puts
5351
end

0 commit comments

Comments
 (0)