mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user