summary refs log tree commit diff stats
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
parente8bab380f4fd5678975659f0535b6485413abed4 (diff)
downloadranger-f66cc63de49c69713631bc5f505992958e5ef5e8.tar.gz
widgets.console: fixed history in clean mode
-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):
e previous revision' href='/danisanti/profani-tty/blame/themes/shade?id=cbdfc09a84ba80dce2199447b2b59f0d5866e3a4'>^
1759a75d ^
30b5f112 ^




6dabbbd5 ^





30b5f112 ^
71679a31 ^

6dabbbd5 ^


6dabbbd5 ^
30b5f112 ^
2f82f50a ^
86c1c388 ^
1a3dc91e ^
30b5f112 ^
6dabbbd5 ^
30b5f112 ^
fbc30231 ^

















cd2458c0 ^

0ae975c2 ^

b21edfaa ^
cd2458c0 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78