From: hsbt@... Date: 2018-04-11T00:49:34+00:00 Subject: [ruby-core:86500] [Ruby trunk Bug#14676][Third Party's Issue] On Windows Readline's input is not correctly filled after autocomplete Issue #14676 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Third Party's Issue It's issue of https://github.com/ConnorAtherton/rb-readline ---------------------------------------- Bug #14676: On Windows Readline's input is not correctly filled after autocomplete https://bugs.ruby-lang.org/issues/14676#change-71443 * Author: graywolf (Gray Wolf) * Status: Third Party's Issue * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- When Readline.completion_proc returns more than one match, you are presented with empty line insted of what you have already put in. ``` require 'readline' Readline.completion_proc = Proc.new do |word| ['foo', 'bar'] end while buf = Readline.readline('> ') pp buf end ``` You will end up with ``` > aa bar foo > "" ``` Works as expected on linux. -- https://bugs.ruby-lang.org/ Unsubscribe: