mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-05-19 23:09:53 +08:00
Merge branch 'master' into dev
This commit is contained in:
+4
-4
@@ -407,15 +407,15 @@ endfunction
|
|||||||
|
|
||||||
function! jedi#complete_opened(is_popup_on_dot)
|
function! jedi#complete_opened(is_popup_on_dot)
|
||||||
if pumvisible()
|
if pumvisible()
|
||||||
if a:is_popup_on_dot
|
|
||||||
" Prevent completion of the first entry with dot completion.
|
|
||||||
return "\<C-p>"
|
|
||||||
endif
|
|
||||||
" Only go down if it is visible, user-enabled and the longest
|
" Only go down if it is visible, user-enabled and the longest
|
||||||
" option is set.
|
" option is set.
|
||||||
if g:jedi#popup_select_first && stridx(&completeopt, 'longest') > -1
|
if g:jedi#popup_select_first && stridx(&completeopt, 'longest') > -1
|
||||||
return "\<Down>"
|
return "\<Down>"
|
||||||
endif
|
endif
|
||||||
|
if a:is_popup_on_dot
|
||||||
|
" Prevent completion of the first entry with dot completion.
|
||||||
|
return "\<C-p>"
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
return ""
|
return ""
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user