forked from VimPlug/jedi
fix parts of helpers.search_function_definition
This commit is contained in:
@@ -355,9 +355,8 @@ class Script(object):
|
||||
if user_stmt is None \
|
||||
or not isinstance(user_stmt, pr.Statement):
|
||||
return None, 0
|
||||
commands = helpers.fast_parent_copy(user_stmt.get_commands())
|
||||
|
||||
call, index, stop = helpers.search_function_call(commands, self.pos)
|
||||
call, index, stop = helpers.search_function_definition(user_stmt, self.pos)
|
||||
return call, index
|
||||
|
||||
def check_cache():
|
||||
|
||||
Reference in New Issue
Block a user