Make sure call signatures are cleared before they are calculated again

This commit is contained in:
Dave Halter
2019-12-05 00:57:00 +01:00
parent 08f13af066
commit 12e97c7a04

View File

@@ -765,9 +765,12 @@ def show_call_signatures(signatures=()):
if int(vim_eval("has('conceal') && g:jedi#show_call_signatures")) == 0:
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 == ():
signatures = get_script().call_signatures()
clear_call_signatures()
if not signatures:
return