1
0
forked from VimPlug/jedi

fix problem that strings are no function calls

This commit is contained in:
David Halter
2013-07-24 16:11:51 +02:00
parent 972d4e9a08
commit 18e561f332
2 changed files with 18 additions and 7 deletions

View File

@@ -123,7 +123,7 @@ def search_function_definition(stmt, pos):
while isinstance(call.parent, pr.Call):
call = call.parent
arr.parent.execution = None
return call, index, False
return call if call.type == pr.Call.NAME else None, index, False
return None, 0, False