generators can now be indexed, don't know if this is a good thing. however, it fixes some problems with lists

This commit is contained in:
David Halter
2012-06-27 14:35:12 +02:00
parent 56a14c7811
commit 19a5d788c4
4 changed files with 38 additions and 18 deletions

View File

@@ -160,6 +160,7 @@ def complete(source, row, column, source_path):
if not isinstance(s, evaluate.Function):
completions += s.get_defined_names()
#completions[0].
completions = [c for c in completions
if c.names[-1].lower().startswith(like.lower())]