1
0
forked from VimPlug/jedi

A small change.

This commit is contained in:
Dave Halter
2017-04-28 18:29:35 +02:00
parent b328e727ea
commit ad536a837c

View File

@@ -101,7 +101,7 @@ class PythonMixin(object):
def get_name_of_position(self, position):
for c in self.children:
if isinstance(c, Leaf):
if isinstance(c, Name) and c.start_pos <= position <= c.end_pos:
if c.type == 'name' and c.start_pos <= position <= c.end_pos:
return c
else:
result = c.get_name_of_position(position)