Skip to content

Commit

Permalink
Merge pull request #501 from kashiro/fix/auto-selected-last-opt
Browse files Browse the repository at this point in the history
check "noselect" and "noinsert" before <C-p>
  • Loading branch information
davidhalter committed Nov 19, 2015
2 parents 0c2831d + 217e56d commit dc23f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ Pedro Ferrari (@petobens)
Daniel Hahler (@blueyed)
Dave Honneffer (@pearofducks)
Bagrat Aznauryan (@n9code)

Tomoyuki Kashiro (@kashiro)

@something are github user names.
6 changes: 4 additions & 2 deletions autoload/jedi.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit dc23f0b

Please sign in to comment.