diff options
author | hut <hut@lavabit.com> | 2010-10-02 16:10:21 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-10-02 16:10:21 +0200 |
commit | 1ef0ade55d7e678ee036a821b26dbf9dc95fb877 (patch) | |
tree | 4cb2d8ca25a43531c9282ea0ff4903a406407988 /ranger/core/actions.py | |
parent | 1120d70c8f259a55bfeeb4c97c5a1e9d78ddebaf (diff) | |
download | ranger-1ef0ade55d7e678ee036a821b26dbf9dc95fb877.tar.gz |
core.fm: Don't check bookmarks when not needed
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 59902bab..4b3752ef 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -472,6 +472,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): def enter_bookmark(self, key): """Enter the bookmark with the name <key>""" try: + self.bookmarks.update_if_outdated() destination = self.bookmarks[key] cwd = self.env.cwd if destination.path != cwd.path: @@ -482,10 +483,12 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): def set_bookmark(self, key): """Set the bookmark with the name <key> to the current directory""" + self.bookmarks.update_if_outdated() self.bookmarks[key] = self.env.cwd def unset_bookmark(self, key): """Delete the bookmark with the name <key>""" + self.bookmarks.update_if_outdated() self.bookmarks.delete(key) def draw_bookmarks(self): |