fix parts of helpers.search_function_definition

This commit is contained in:
David Halter committed 2013-02-10 22:40:28 +01:00
1 parent 01c48593bf
commit 5722cd2382
2 files changed
+43 -37

No files matched your search

+1 -2
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():