From: merch-redmine@... Date: 2021-02-26T20:31:16+00:00 Subject: [ruby-core:102620] [Ruby master Bug#16685] IRB auto indent does not work for single-line method definitions Issue #16685 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Closed This behavior seems to have been fixed after the release of Ruby 3.0. I'm guessing this fix has already been backported and will make Ruby 3.0.1, but @aycabta could probably confirm that. ---------------------------------------- Bug #16685: IRB auto indent does not work for single-line method definitions https://bugs.ruby-lang.org/issues/16685#change-90610 * Author: sawa (Tsuyoshi Sawada) * Status: Closed * Priority: Normal * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- IRB auto indent does not work correctly for single line method definitions within a class. It ends up like this: ```ruby irb(main):001:1* class Foo irb(main):002:1* def a; end irb(main):003:1* def b; end irb(main):004:0> end => :b ``` I believe it should end up like this: ```ruby irb(main):001:1* class Foo irb(main):002:1* def a; end irb(main):003:1* def b; end irb(main):004:0> end => :b ``` -- https://bugs.ruby-lang.org/ Unsubscribe: