forked from VimPlug/jedi-vim
Make sure call signatures are cleared before they are calculated again
This commit is contained in:
@@ -765,9 +765,12 @@ def show_call_signatures(signatures=()):
|
|||||||
if int(vim_eval("has('conceal') && g:jedi#show_call_signatures")) == 0:
|
if int(vim_eval("has('conceal') && g:jedi#show_call_signatures")) == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# We need to clear the signatures before we calculate them again. The
|
||||||
|
# reason for this is that call signatures are unfortunately written to the
|
||||||
|
# buffer.
|
||||||
|
clear_call_signatures()
|
||||||
if signatures == ():
|
if signatures == ():
|
||||||
signatures = get_script().call_signatures()
|
signatures = get_script().call_signatures()
|
||||||
clear_call_signatures()
|
|
||||||
|
|
||||||
if not signatures:
|
if not signatures:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user