From 12e97c7a04f8fd80afe0de0f1c9181f2c7bc53ca Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 5 Dec 2019 00:57:00 +0100 Subject: [PATCH] Make sure call signatures are cleared before they are calculated again --- pythonx/jedi_vim.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pythonx/jedi_vim.py b/pythonx/jedi_vim.py index 513b79f..e03d082 100644 --- a/pythonx/jedi_vim.py +++ b/pythonx/jedi_vim.py @@ -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