1
0
forked from VimPlug/jedi

for flows triggered an exception if goto_assignments was used on the keyword. found with the help of sith.py

This commit is contained in:
Dave Halter
2014-04-16 09:57:01 +02:00
parent a341791fda
commit 15fdecdb61
3 changed files with 15 additions and 5 deletions

View File

@@ -266,6 +266,9 @@ class Script(object):
stmt = r.module.statements[-1]
except IndexError:
raise NotFoundError()
if isinstance(stmt, pr.Flow):
raise NotFoundError()
user_stmt = self._parser.user_stmt()
if user_stmt is None:
# Set the start_pos to a pseudo position, that doesn't exist but works