mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Merge pull request #501 from kashiro/fix/auto-selected-last-opt
check "noselect" and "noinsert" before <C-p>
This commit is contained in:
@@ -48,6 +48,6 @@ Pedro Ferrari (@petobens)
|
||||
Daniel Hahler (@blueyed)
|
||||
Dave Honneffer (@pearofducks)
|
||||
Bagrat Aznauryan (@n9code)
|
||||
|
||||
Tomoyuki Kashiro (@kashiro)
|
||||
|
||||
@something are github user names.
|
||||
|
||||
@@ -491,8 +491,10 @@ function! jedi#complete_opened(is_popup_on_dot)
|
||||
return "\<Down>"
|
||||
endif
|
||||
if a:is_popup_on_dot
|
||||
" Prevent completion of the first entry with dot completion.
|
||||
return "\<C-p>"
|
||||
if &completeopt !~ '\(noinsert\|noselect\)'
|
||||
" Prevent completion of the first entry with dot completion.
|
||||
return "\<C-p>"
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user