forked from VimPlug/jedi-vim
check "noselect" and "noinsert" before <C-p>
to prevent from selecting last option check "noselect" and "noinsert" before <C-p> @see https://github.com/Shougo/neocomplete.vim/blob/master/doc/neocomplete.txt#L1817-L1826
This commit is contained in:
@@ -48,6 +48,6 @@ Pedro Ferrari (@petobens)
|
|||||||
Daniel Hahler (@blueyed)
|
Daniel Hahler (@blueyed)
|
||||||
Dave Honneffer (@pearofducks)
|
Dave Honneffer (@pearofducks)
|
||||||
Bagrat Aznauryan (@n9code)
|
Bagrat Aznauryan (@n9code)
|
||||||
|
Tomoyuki Kashiro (@kashiro)
|
||||||
|
|
||||||
@something are github user names.
|
@something are github user names.
|
||||||
|
|||||||
@@ -491,8 +491,10 @@ function! jedi#complete_opened(is_popup_on_dot)
|
|||||||
return "\<Down>"
|
return "\<Down>"
|
||||||
endif
|
endif
|
||||||
if a:is_popup_on_dot
|
if a:is_popup_on_dot
|
||||||
" Prevent completion of the first entry with dot completion.
|
if &completeopt !~ '\(noinsert\|noselect\)'
|
||||||
return "\<C-p>"
|
" Prevent completion of the first entry with dot completion.
|
||||||
|
return "\<C-p>"
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user