1
0
forked from VimPlug/jedi

fix parts of helpers.search_function_definition

This commit is contained in:
David Halter
2013-02-10 22:39:21 +01:00
parent 01c48593bf
commit 5722cd2382
2 changed files with 43 additions and 37 deletions

View File

@@ -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():