summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index b88849ef..a19927a4 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -216,6 +216,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 
 	def move_parent(self, n):
 		parent = self.env.at_level(-1)
+		if parent.pointer + n < 0:
+			n = 0 - parent.pointer
 		try:
 			self.env.enter_dir(parent.files[parent.pointer+n])
 		except IndexError:
^
c5ffb6e1 ^

a654e4ec ^
e6056999 ^
a654e4ec ^
a654e4ec ^
3e1349d2 ^
0e4a335e ^
a654e4ec ^

3e1349d2 ^
c5ffb6e1 ^

a654e4ec ^





c5ffb6e1 ^

a654e4ec ^
c5ffb6e1 ^

f344b250 ^
76755b28 ^
f5465e12 ^
db1f56c8 ^
c5ffb6e1 ^
f344b250 ^
f5465e12 ^
b4d5b589 ^
f5465e12 ^
c5ffb6e1 ^
f5465e12 ^

32b8fac2 ^
f5465e12 ^


0ca56ed8 ^
c5ffb6e1 ^

f344b250 ^
c5ffb6e1 ^
f5465e12 ^
db1f56c8 ^
f5465e12 ^
c5ffb6e1 ^
b4d5b589 ^
2f02189d ^
c5ffb6e1 ^
f344b250 ^
f5465e12 ^


c5ffb6e1 ^

4690ce81 ^
f5465e12 ^
f344b250 ^
c5ffb6e1 ^
f344b250 ^

9570363a ^

c5ffb6e1 ^



a654e4ec ^
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