[ruby-cvs:78794] ec1de789a9 (master): [ruby/reline] Preserve the input buffer across cursor_pos

"Yusuke Endoh" <[email protected]> Sun, 22 Dec 2019 01:57:54 +0900 (JST)
Newsgroups gmane.comp.lang.ruby.cvs
Message-ID <[email protected]>
Yusuke Endoh	2019-12-14 15:46:42 +0900 (Sat, 14 Dec 2019)

  New Revision: ec1de789a9

  https://github.com/ruby/ruby/commit/ec1de789a9

  Log:
    [ruby/reline] Preserve the input buffer across cursor_pos
    
    The old version of cursor_pos discards the input buffer, which made IRB
    ignore the input immediately after IRB is invoked.
    
    This change keeps the input before cursor_pos by using ungetc.
    
    https://github.com/ruby/reline/commit/4a8cca331f

  Modified files:
    lib/reline/ansi.rb