1
0
forked from VimPlug/jedi

tests added / error catch

This commit is contained in:
David Halter
2012-04-25 09:48:31 +02:00
parent 1ea2954c0e
commit 3780e44603
6 changed files with 36 additions and 9 deletions

View File

@@ -198,7 +198,8 @@ def complete(source, row, column, source_path):
completions = []
debug.dbg('possible scopes', scopes)
for s in scopes:
# TODO is this reall the right way, just ignore the functions?
# TODO is this reall the right way? just ignore the functions? \
# do the magic functions first? and then recheck here?
if not isinstance(s, parsing.Function):
completions += s.get_defined_names()