summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-01-18 14:22:46 +0100
committerhut <hut@lepus.uberspace.de>2015-01-18 14:23:23 +0100
commit737b48e27d0736b11f695c1bd96816ee9808092d (patch)
tree5a88ad124c16624fe4a1b0e9053e74860c47c3e4 /ranger
parent28a38b116aa1f4e70f75800c66e019b116b64eb5 (diff)
downloadranger-737b48e27d0736b11f695c1bd96816ee9808092d.tar.gz
core.fm: rearranged loading order of tags
This avoids crashing on startup if there's a bookmarked file that is
tagged to a tag which is used in ":default_linemode tag=X ..."
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/fm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index 87c14f7a..082df2f4 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -98,6 +98,9 @@ class FM(Actions, SignalDispatcher):
         self.rifle = Rifle(rifleconf)
         self.rifle.reload_config()
 
+        if not ranger.arg.clean and self.tags is None:
+            self.tags = Tags(self.confpath('tagged'))
+
         if self.bookmarks is None:
             if ranger.arg.clean:
                 bookmarkfile = None
@@ -109,9 +112,6 @@ class FM(Actions, SignalDispatcher):
                     autosave=self.settings.autosave_bookmarks)
             self.bookmarks.load()
 
-        if not ranger.arg.clean and self.tags is None:
-            self.tags = Tags(self.confpath('tagged'))
-
         self.ui.setup_curses()
         self.ui.initialize()