added a method 'api_classes.Completion.name_with_signs', because this is important for #280

This commit is contained in:
David Halter
2013-08-15 13:56:43 +04:30
parent 5c0dec6106
commit d6e9732064
2 changed files with 33 additions and 13 deletions

View File

@@ -93,7 +93,8 @@ def setup_readline(namespace=__main__.__dict__):
self.matches.append(path + dot + name)
else:
completions = interpreter.completions()
self.matches = [text + c.complete for c in completions]
self.matches = [path + dot + c.name_with_signs
for c in completions]
try:
return self.matches[state]
except IndexError: