1
0
forked from VimPlug/jedi

Completion now always takes a NamePart as input.

This commit is contained in:
Dave Halter
2014-09-10 18:59:08 +02:00
parent 0eea30f227
commit 1fb9b4bc6b
7 changed files with 20 additions and 14 deletions

View File

@@ -179,7 +179,9 @@ class Script(object):
comps = []
comp_dct = {}
for c, s in set(completions):
n = str(c.names[-1])
# TODO Remove this line. c should be a namepart even before that.
c = c.names[-1]
n = str(c)
if settings.case_insensitive_completion \
and n.lower().startswith(like.lower()) \
or n.startswith(like):