summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-06-09 12:43:13 +0200
committerhut <hut@lavabit.com>2010-06-09 12:43:22 +0200
commitf66cc63de49c69713631bc5f505992958e5ef5e8 (patch)
tree084b48900e5ead8ca4731159c3ed686651246925 /ranger
parente8bab380f4fd5678975659f0535b6485413abed4 (diff)
downloadranger-f66cc63de49c69713631bc5f505992958e5ef5e8.tar.gz
widgets.console: fixed history in clean mode
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/console.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 3bb41482..1ee7ebc0 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -66,7 +66,11 @@ class Console(Widget):
 		self.clear()
 		self.histories = []
 		# load histories from files
-		if not ranger.arg.clean:
+		if ranger.arg.clean:
+			for i in range(4):
+				self.histories.append(
+						History(self.settings.max_console_history_size))
+		else:
 			self.historypaths = [relpath_conf(x) for x in \
 				('history', 'history_search', 'history_qopen', 'history_open')]
 			for i, path in enumerate(self.historypaths):