mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00
[ruby/irb] Page the output in irb:rdbg sessions too
(https://github.com/ruby/irb/pull/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.
8241ec9a0c
This commit is contained in:
parent
f9601903f6
commit
2335ecb7fa
1 changed files with 1 additions and 3 deletions
|
@ -45,9 +45,7 @@ module IRB
|
||||||
$stdout.puts line.chomp
|
$stdout.puts line.chomp
|
||||||
}
|
}
|
||||||
when String
|
when String
|
||||||
str.each_line{|line|
|
Pager.page_content(str, retain_content: true)
|
||||||
$stdout.puts line.chomp
|
|
||||||
}
|
|
||||||
when nil
|
when nil
|
||||||
$stdout.puts
|
$stdout.puts
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue