Commit baab16b9 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧

Fix completion with new Collection objects

parent 682e14c8
......@@ -905,7 +905,7 @@ class ReplApplication(Cmd, ConsoleApplication):
return objects
def complete_cd(self, text, line, begidx, endidx):
directories = ['..']
directories = set(['..'])
mline = line.partition(' ')[2]
offs = len(mline) - len(text)
......@@ -914,7 +914,9 @@ class ReplApplication(Cmd, ConsoleApplication):
for obj in self.objects:
if isinstance(obj, Collection):
if obj.title:
return [s[offs:] for s in directories if s.startswith(mline)]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment