1
0
forked from VimPlug/jedi

better care for aliases in imports in jedi-vim issue 8

This commit is contained in:
David Halter
2012-10-16 12:00:11 +02:00
parent 1d2debf38d
commit 77e48fcd95
2 changed files with 8 additions and 7 deletions

View File

@@ -448,6 +448,8 @@ class Script(object):
kill_count = -1
cur_name_part = None
for i in import_names:
if user_stmt.alias == i:
continue
for name_part in i.names:
if name_part.end_pos >= self.pos:
if not cur_name_part: