From 2f06d90f95bb2233ad8b4c68f2733cfde998ff56 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 1 May 2015 04:41:33 +0200 Subject: [PATCH] Fix jedi#complete_opened for completeopt with "longest" jedi#complete_opened: move for is_popup_on_dot below "longest" handling. Fixes #399. --- autoload/jedi.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index 78c0de6..a2172bf 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -407,15 +407,15 @@ endfunction function! jedi#complete_opened(is_popup_on_dot) if pumvisible() - if a:is_popup_on_dot - " Prevent completion of the first entry with dot completion. - return "\" - endif " Only go down if it is visible, user-enabled and the longest " option is set. if g:jedi#popup_select_first && stridx(&completeopt, 'longest') > -1 return "\" endif + if a:is_popup_on_dot + " Prevent completion of the first entry with dot completion. + return "\" + endif endif return "" endfunction