forked from VimPlug/jedi
none positions shouldn't be an option, (0, 0) is the 'invalid' or 'generated' position for objects that are always found
This commit is contained in:
@@ -949,8 +949,12 @@ def get_defined_names_for_position(scope, position=None, start_scope=None):
|
||||
return names
|
||||
names_new = []
|
||||
for n in names:
|
||||
if n.start_pos < position:
|
||||
try:
|
||||
if n.start_pos[0] is not None and n.start_pos < position:
|
||||
names_new.append(n)
|
||||
except:
|
||||
print(n, position, n.parent())
|
||||
raise
|
||||
return names_new
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user