summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent277a7026164384ec453bbb8c59c91996e8262d18 (diff)
downloadranger-d672cbcb3eaef39222fd3902b8ffcb80a21f48f1.tar.gz
fixed history (fast_forward worked reversed)
Diffstat (limited to 'ranger')
-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):
30 09:43:49 -0800 committer Kartik Agaram <vc@akkartik.com> 2018-11-30 09:43:49 -0800 4796' href='/akkartik/mu/commit/html/subx/053new_segment.subx.html?h=hlt&id=c56d803cd8a0e3f28328f91aa1d457905a68641a'>c56d803c ^
34c84469 ^

14a38052 ^


d1c9392a ^
c56d803c ^
14a38052 ^





91dab3e1 ^
d1c9392a ^
14a38052 ^
91dab3e1 ^
d1c9392a ^
14a38052 ^
91dab3e1 ^
14a38052 ^

d1c9392a ^
39d718af ^
14a38052 ^

91dab3e1 ^
14a38052 ^
c98d4b1c ^
f75f333f ^
91dab3e1 ^
f75f333f ^
91dab3e1 ^
f75f333f ^

14a38052 ^



91dab3e1 ^
14a38052 ^

d1c9392a ^


c56d803c ^
f75f333f ^
14a38052 ^











34c84469 ^
14a38052 ^
34c84469 ^



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