diff options
Diffstat (limited to 'lib/reline/line_editor.rb')
| -rw-r--r-- | lib/reline/line_editor.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index b5a5af30f3..5e3b836037 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1426,7 +1426,11 @@ class Reline::LineEditor if result.is_a?(Array) completion_occurs = true process_insert - complete(result) + if @config.autocompletion + move_completed_list(result, :down) + else + complete(result) + end end end elsif not @config.disable_completion and @config.editing_mode_is?(:vi_insert) and ["\C-p".ord, "\C-n".ord].include?(key.char) |
