From e8b88f0161ef2adabda97d4e083585a3becdcb53 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 27 May 2016 13:22:37 +0200 Subject: [PATCH] When jedi-vim cannot load jedi, show_call_signatures should not throw errors all the time. One error at the beginning is enough. --- autoload/jedi.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index ee2f5e1..716c316 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -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