ruby / irb

interactive Ruby
BSD 2-Clause "Simplified" License
392 stars 119 forks source link

Fix debug command in nomultiline mode #1006

Closed tompng closed 2 months ago

tompng commented 2 months ago

Fixes #909 and #1003

Fix this bug

% irb --readline
irb(main):001> binding.irb
irb(main):001> debug
/Users/tomoya.ishida/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/irb-1.14.0/lib/irb/debug.rb:72:in `block in setup': undefined method `call' for nil (NoMethodError)

            irb_output_modifier_proc.call(output, complete: complete)
                                    ^^^^^

rendering test conflicts with #1001

st0012 commented 2 months ago

Thank you!