1
0
forked from VimPlug/jedi

fixed more import problems (also with the import usage), definitely fixes davidhalter/jedi-vim#152

This commit is contained in:
David Halter
2013-08-07 10:24:28 +04:30
parent f72816a702
commit c6e08221ce
4 changed files with 15 additions and 8 deletions

View File

@@ -112,7 +112,8 @@ class Script(object):
names = s.get_magic_method_names()
else:
if isinstance(s, imports.ImportPath):
if like == 'import':
under = like + self._module.get_path_after_cursor()
if under == 'import':
if not completion_line.endswith('import import'):
continue
a = s.import_stmt.alias