From ae7668078374a6ef30d3a45b29746d7315223761 Mon Sep 17 00:00:00 2001 From: toonn Date: Thu, 19 Apr 2018 09:04:04 +0200 Subject: Save all the tabs, including the active tab. Remove the check preventing the active tab from being saved. Fixes #883 --- ranger/core/fm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranger/core/fm.py b/ranger/core/fm.py index c55a3922..d85dd48c 100644 --- a/ranger/core/fm.py +++ b/ranger/core/fm.py @@ -424,5 +424,5 @@ class FM(Actions, # pylint: disable=too-many-instance-attributes if not ranger.args.clean and self.settings.save_tabs_on_exit and len(self.tabs) > 1: with open(self.datapath('tabs'), 'a') as fobj: # Don't save active tab since launching ranger changes the active tab - fobj.write('\0'.join(v.path for t, v in self.tabs.items() - if t != self.current_tab) + '\0\0') + fobj.write('\0'.join(v.path for t, v in self.tabs.items()) + + '\0\0') -- cgit 1.4.1-2-gfad0