mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-10 00:53:24 +08:00
better support for get_in_function_call
This commit is contained in:
@@ -408,12 +408,16 @@ class Script(object):
|
||||
# call should return without execution and
|
||||
# next
|
||||
reset = c or s
|
||||
if reset.execution.type not in \
|
||||
[parsing.Array.TUPLE,
|
||||
parsing.Array.NOARRAY]:
|
||||
return start_s, index, False
|
||||
|
||||
reset.execution = None
|
||||
reset.next = None
|
||||
return c or start_s, index, True
|
||||
#else:
|
||||
#return call, index, stop
|
||||
s = s.next
|
||||
|
||||
# The third return is just necessary for recursion inside, because
|
||||
# it needs to know when to stop iterating.
|
||||
return call, index, stop
|
||||
|
||||
Reference in New Issue
Block a user