1
0
forked from VimPlug/jedi

Fix CallSignature index for a looot of cases, fixes #1364,#1363

This commit is contained in:
Dave Halter
2019-07-08 12:40:58 -07:00
parent 943617a94f
commit 08019075c3
3 changed files with 150 additions and 51 deletions

View File

@@ -615,6 +615,7 @@ class CallSignature(Definition):
The Param index of the current call.
Returns None if the index cannot be found in the curent call.
"""
return self._call_details.calculate_index(self._signature.get_param_names())
if self._call_details.keyword_name_str is not None:
for i, param in enumerate(self.params):
if self._call_details.keyword_name_str == param.name: