1
0
forked from VimPlug/jedi

fix another = error and goto error with dicts

This commit is contained in:
David Halter
2012-10-09 07:55:42 +02:00
parent a8371d37be
commit 01da60b594
3 changed files with 7 additions and 7 deletions

View File

@@ -1138,7 +1138,10 @@ def get_scopes_for_name(scope, name_str, position=None, search_global=False,
if name_str == name.get_code() and p not in break_scopes:
r, no_break_scope = process(name)
if is_goto:
result.append(name)
if r:
# Directly assign the name, but there has to be a
# result.
result.append(name)
else:
result += r
# for comparison we need the raw class