Actions
Bug #14676
closedOn Windows Readline's input is not correctly filled after autocomplete
Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32]
Description
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<TAB>
bar foo
> <ENTER>
""
Works as expected on linux.
Actions
Like0
Like0Like0