This closes https://github.com/ruby/reline/issues/103. https://github.com/ruby/reline/commit/213e0523d5