1
0
forked from VimPlug/jedi

some renaming fixes

This commit is contained in:
David Halter
2013-02-19 00:32:47 +04:30
parent 1b7fc1ee50
commit 06a54f30a8
2 changed files with 9 additions and 7 deletions

View File

@@ -314,7 +314,7 @@ class Script(object):
user_stmt = self._parser.user_stmt
definitions, search_name = self._goto(add_import_name=True)
if isinstance(user_stmt, pr.Statement) \
and self.pos < user_stmt.get_assignment_calls().start_pos:
and self.pos < user_stmt.get_commands()[0].start_pos:
# the search_name might be before `=`
definitions = [v for v in user_stmt.set_vars
if unicode(v.names[-1]) == search_name]