Skip to content

Commit

Permalink
Page the output in irb:rdbg sessions too
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
st0012 committed Dec 10, 2024
1 parent 9eb14a3 commit 1315332
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/irb/debug/ui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1315332

Please sign in to comment.