Properly get to the previous path, not home

This commit is contained in:
Laurent Bachelier 2012-11-08 10:45:19 +01:00 committed by Romain Bignon
commit f48c81de53

View file

@ -948,7 +948,7 @@ class ReplApplication(Cmd, ConsoleApplication):
if path:
# Let's go back to the parent directory
self.working_path.home()
self.working_path.restore()
else:
# Save collections only if we listed the current path.
self.collections = collections