summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-17 19:55:46 +0100
committerhut <hut@lavabit.com>2009-12-17 19:55:46 +0100
commitd672cbcb3eaef39222fd3902b8ffcb80a21f48f1 (patch)
tree7f325fe01cb09971401acb8d70beef8aaf64359c
parent277a7026164384ec453bbb8c59c91996e8262d18 (diff)
downloadranger-d672cbcb3eaef39222fd3902b8ffcb80a21f48f1.tar.gz
fixed history (fast_forward worked reversed)
-rw-r--r--ranger/container/history.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/container/history.py b/ranger/container/history.py
index 355c7c72..80fe8b4a 100644
--- a/ranger/container/history.py
+++ b/ranger/container/history.py
@@ -29,7 +29,7 @@ class History(object):
 
 	def top(self):
 		try:
-			return self.history_forward[0]
+			return self.history_forward[-1]
 		except IndexError:
 			try:
 				return self.history[-1]
@@ -44,7 +44,7 @@ class History(object):
 
 	def back(self):
 		if len(self.history) > 1:
-			self.history_forward.append( self.history.pop() )
+			self.history_forward.appendleft( self.history.pop() )
 		return self.current()
 
 	def move(self, n):
@@ -61,7 +61,7 @@ class History(object):
 
 	def forward(self):
 		if len(self.history_forward) > 0:
-			self.history.append( self.history_forward.pop() )
+			self.history.append( self.history_forward.popleft() )
 		return self.current()
 
 	def fast_forward(self):
95ae0f1574ee1f0fb803ff05c77aaf04f13fc'>de495ae ^
bb9e23a ^

de495ae ^
bb9e23a ^
10c9618 ^
de495ae ^
bb9e23a ^
de495ae ^
bb9e23a ^
de495ae ^

bb9e23a ^
de495ae ^
f49e2fd ^
26033f4 ^

10c9618 ^


de495ae ^









fbad3dd ^
de495ae ^

fbad3dd ^
10c9618 ^
de495ae ^




fbad3dd ^
de495ae ^
fbad3dd ^
de495ae ^
fbad3dd ^
26033f4 ^

10c9618 ^


de495ae ^



46d4c4d ^




37f1313 ^
46d4c4d ^


37f1313 ^
46d4c4d ^
37f1313 ^



46d4c4d ^
37f1313 ^
46d4c4d ^














37f1313 ^
46d4c4d ^



















f49e2fd ^
26033f4 ^

46d4c4d ^





37f1313 ^
46d4c4d ^
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173