mirror of
https://github.com/ruby/ruby.git
synced 2026-08-21 17:32:51 +08: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. https://github.com/ruby/irb/commit/8241ec9a0c
This commit is contained in:
parent
f9601903f6
commit
2335ecb7fa
@ -45,9 +45,7 @@ module IRB
|
||||
$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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user