From e38981fc4f88eea2a8a778786f5a2faef5565662 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 18 Oct 2015 16:04:42 +0200 Subject: [PATCH] Invalidate `show_call_signatures_delay` on InsertEnter Followup to e241cf87fdccaa4f5eec48d4e4063920f2dfddea. Ref: https://github.com/davidhalter/jedi-vim/pull/420. Ref: https://github.com/davidhalter/jedi-vim/pull/475#issuecomment-149013542. --- autoload/jedi.vim | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index 9243418..be51607 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -396,19 +396,14 @@ function! jedi#show_call_signatures() endfunction -function! jedi#clear_call_signatures() - let s:show_call_signatures_last = [0, 0, ''] - PythonJedi jedi_vim.clear_call_signatures() -endfunction - - function! jedi#configure_call_signatures() augroup jedi_call_signatures au! if g:jedi#show_call_signatures == 2 " Command line call signatures autocmd InsertEnter let g:jedi#first_col = s:save_first_col() endif - autocmd InsertLeave call jedi#clear_call_signatures() + autocmd InsertEnter let s:show_call_signatures_last = [0, 0, ''] + autocmd InsertLeave PythonJedi jedi_vim.clear_call_signatures() if g:jedi#show_call_signatures_delay > 0 autocmd InsertEnter let b:_jedi_orig_updatetime = &updatetime \ | let &updatetime = g:jedi#show_call_signatures_delay