summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-06-20 17:12:32 +0200
committerhut <hut@lavabit.com>2010-06-20 17:12:32 +0200
commit1dbb5ce9e0dfe2b857020290b29e2e22321985ef (patch)
treefaa8f16d25ec05db51d9c782d4dab6ab0dfa5a17
parentc928a9ebd2dc11142f5a7d5b1e6be5cff0183e96 (diff)
downloadranger-1dbb5ce9e0dfe2b857020290b29e2e22321985ef.tar.gz
core.actions: Fixed indexerror in move_parent()
-rw-r--r--ranger/core/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index c85b7313..3c9f6135 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -140,7 +140,10 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 
 	def move_parent(self, n):
 		parent = self.env.at_level(-1)
-		self.env.enter_dir(parent.files[parent.pointer+n])
+		try:
+			self.env.enter_dir(parent.files[parent.pointer+n])
+		except IndexError:
+			pass
 
 	def history_go(self, relative):
 		"""Move back and forth in the history"""
e/ranger/data/scope.sh?h=v1.9.2&id=324e5af2e7ec0a825305dc6a03c95efa3682869a'>^
60efe50d ^


619f2b23 ^
60efe50d ^




9220c310 ^
60efe50d ^

















83d0e61a ^

60efe50d ^
































40bd7bc1 ^
971f135c ^








60efe50d ^

40bd7bc1 ^
60efe50d ^





ab8fd9e8 ^








8fd92581 ^
a7258a2b ^

b9eacb84 ^

e8963cba ^

d062ce4b ^
b9eacb84 ^

d062ce4b ^
b9eacb84 ^

d062ce4b ^
e8963cba ^

d062ce4b ^
b9eacb84 ^
2abdc703 ^



b9eacb84 ^


e8963cba ^






b9eacb84 ^
e8963cba ^


b9eacb84 ^
40bd7bc1 ^
60efe50d ^

















619f2b23 ^
9a3fc5d8 ^
60efe50d ^
















40bd7bc1 ^
60efe50d ^





60efe50d ^



ab8fd9e8 ^
60efe50d ^

2d97d367 ^
43e0f44a ^
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216