From 737b48e27d0736b11f695c1bd96816ee9808092d Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 18 Jan 2015 14:22:46 +0100 Subject: 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 ..." --- ranger/core/fm.py | 6 +++--- 1 file 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() -- cgit 1.4.1-2-gfad0