1
0
forked from VimPlug/jedi

More goto improvements.

This commit is contained in:
Dave Halter
2014-11-21 15:45:17 +01:00
parent eb0bfb4381
commit 22fbcf6c77
3 changed files with 10 additions and 4 deletions

View File

@@ -454,7 +454,8 @@ class Evaluator(object):
return iterable.unite(self.find_types(typ, name, is_goto=True)
for typ in types)
else:
return self.find_types(scope, name, search_global=True, is_goto=True)
return self.find_types(scope, name, name.start_pos,
search_global=True, is_goto=True)
if isinstance(stmt, pr.Import):
# Nowhere to goto for aliases
if stmt.alias == call_path[0]: