From 77924398bd594e238766153cec97ace62650f082 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 15 Oct 2017 20:51:54 +0200 Subject: [PATCH] Add a comment to clarify why we I used longest --- autoload/jedi.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index b763166..c890df9 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -579,6 +579,10 @@ function! jedi#complete_string(autocomplete) abort set completeopt+=noselect endif else + " To pass the tests we use this, it seems to get the closest to + " the other options. I'm really not sure if this properly + " works, but VIM 7.4-775 is already pretty old, so it might not + " be a problem anymore in a few years. set completeopt+=longest endif endif