When jedi-vim cannot load jedi, show_call_signatures should not throw errors all the time. One error at the beginning is enough.

This commit is contained in:
Dave Halter
2016-05-27 13:22:37 +02:00
parent a0c3269420
commit e8b88f0161

View File

@@ -364,6 +364,9 @@ endfunc
let s:show_call_signatures_last = [0, 0, '']
function! jedi#show_call_signatures()
if s:_init_python == 0
return 1
endif
let [line, col] = [line('.'), col('.')]
let curline = getline(line)
let reload_signatures = 1
@@ -391,8 +394,12 @@ endfunction
function! jedi#clear_call_signatures()
if s:_init_python == 0
return 1
endif
let s:show_call_signatures_last = [0, 0, '']
PythonJedi jedi_vim.clear_call_signatures()
jedi_vim.clear_call_signatures()
endfunction