1
0
forked from VimPlug/jedi

finally able to remove stmt.set_vars property

This commit is contained in:
David Halter
2013-09-02 21:43:23 +04:30
parent 9565aa1431
commit 37ecf943af
4 changed files with 3 additions and 7 deletions

View File

@@ -468,7 +468,7 @@ class Script(object):
c = user_stmt.get_commands()[0]
if not isinstance(c, unicode) and self._pos < c.start_pos:
# the search_name might be before `=`
definitions = [v for v in user_stmt.set_vars
definitions = [v for v in user_stmt.get_set_vars()
if unicode(v.names[-1]) == search_name]
if not isinstance(user_stmt, pr.Import):
# import case is looked at with add_import_name option