diff options
author | hut <hut@lavabit.com> | 2009-12-13 15:40:18 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-13 15:40:18 +0100 |
commit | f2d8598d2b0ce36a8f275800cd2d0164ec672abb (patch) | |
tree | 5c35976535b8e4e4197892cad237eb637a6701d5 /ranger/actions.py | |
parent | 728fb8385d3a4dca994ae652ca44b9ffe72a029d (diff) | |
download | ranger-f2d8598d2b0ce36a8f275800cd2d0164ec672abb.tar.gz |
updated bookmarks
Diffstat (limited to 'ranger/actions.py')
-rw-r--r-- | ranger/actions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/actions.py b/ranger/actions.py index 2435480b..cc013401 100644 --- a/ranger/actions.py +++ b/ranger/actions.py @@ -40,16 +40,16 @@ If CTRL+C is pressed while waiting, the program will be exited""" from ranger.container.bookmarks import NonexistantBookmark try: destination = self.bookmarks[key] - current_path = self.env.pwd.path - if destination != current_path: + pwd = self.env.pwd + if destination.path != pwd.path: self.bookmarks.enter(key) - self.bookmarks.remember(current_path) + self.bookmarks.remember(pwd) except NonexistantBookmark: pass def set_bookmark(self, key): """Set the bookmark with the name <key> to the current directory""" - self.bookmarks[key] = self.env.pwd.path + self.bookmarks[key] = self.env.pwd def unset_bookmark(self, key): """Delete the bookmark with the name <key>""" |