about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2018-04-19 09:04:04 +0200
committertoonn <toonn@toonn.io>2018-04-19 13:59:47 +0200
commitae7668078374a6ef30d3a45b29746d7315223761 (patch)
treec9d5a2ee316bcb300b87e8b49749bd7d3e4e80ea
parenta30b5e5b517a04f35e79a41a624aaedf187f6a36 (diff)
downloadranger-ae7668078374a6ef30d3a45b29746d7315223761.tar.gz
Save all the tabs, including the active tab.
Remove the check preventing the active tab from being saved.

Fixes #883
-rw-r--r--ranger/core/fm.py4
1 files 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')