[ruby/reline] Combine common logic into one
https://github.com/ruby/reline/commit/5db9738f17
[ruby/reline] Combine common logic into one
https://github.com/ruby/reline/commit/5db9738f17