summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-28 21:59:30 +0200
committerhut <hut@lavabit.com>2010-03-28 21:59:30 +0200
commit6ae68da4b0c341cbd49f05bb02b979bec4377d20 (patch)
tree98f5b046c5baa21ff2ff19d992014e039f853b0f /ranger
parent34c131ef561ffb22586e2094fc0c478a44f24ac6 (diff)
downloadranger-6ae68da4b0c341cbd49f05bb02b979bec4377d20.tar.gz
core.environment: don't GC directories which you're in. lol
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/environment.py b/ranger/core/environment.py
index 74b4f718..8799229c 100644
--- a/ranger/core/environment.py
+++ b/ranger/core/environment.py
@@ -106,7 +106,7 @@ class Environment(SettingsAware):
 		for key in tuple(self.directories.keys()):
 			value = self.directories[key]
 			if isinstance(value, FileSystemObject):
-				if value.is_older_than(1200):
+				if value.is_older_than(1200) and not value in self.pathway:
 					del self.directories[key]
 
 	def get_selection(self):