if completeopt = longest is not set, change the default behaviour of the popup menu, fixes #32

This commit is contained in:
David Halter
2012-12-11 15:10:03 +01:00
parent 1507fcc24f
commit 42900bb62f
2 changed files with 6 additions and 2 deletions

View File

@@ -25,7 +25,11 @@ if g:jedi#auto_initialization
end end
if g:jedi#popup_on_dot if g:jedi#popup_on_dot
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<C-X>\<C-O>" : ""<CR> if stridx(&completeopt, 'longest') > -1
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>" : ""<CR>
else
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-P>" : ""<CR>
end
end end
if g:jedi#auto_close_doc if g:jedi#auto_close_doc

2
jedi

Submodule jedi updated: 800f6eb84b...2d75f509b7