mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Wrap jedi#configure_call_signatures in augroup
This commit is contained in:
@@ -367,11 +367,14 @@ endfunc
|
||||
|
||||
|
||||
function! jedi#configure_call_signatures()
|
||||
augroup jedi_call_signatures
|
||||
au!
|
||||
if g:jedi#show_call_signatures == 2 " Command line call signatures
|
||||
autocmd InsertEnter <buffer> let g:jedi#first_col = s:save_first_col()
|
||||
endif
|
||||
autocmd InsertLeave <buffer> PythonJedi jedi_vim.clear_call_signatures()
|
||||
autocmd CursorMovedI <buffer> PythonJedi jedi_vim.show_call_signatures()
|
||||
augroup END
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ describe 'signatures'
|
||||
redir => msg
|
||||
doautocmd InsertLeave
|
||||
redir END
|
||||
Expect msg == "\n\n"
|
||||
Expect msg == "\n"
|
||||
end
|
||||
|
||||
it 'command line no signature'
|
||||
|
||||
Reference in New Issue
Block a user