summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-29 22:21:50 +0100
committerhut <hut@lavabit.com>2009-12-29 22:21:50 +0100
commit923844b32aa8253d78c4aea005eee1b4df67fa6d (patch)
tree4bef54cd09f94a9052aeeb8d367fb1cdcbb2f6a9
parentf65fc31cc8e1acb11229fb99d3d38e64e0bbf70e (diff)
downloadranger-923844b32aa8253d78c4aea005eee1b4df67fa6d.tar.gz
fixed movement in empty/unloaded directory
-rw-r--r--ranger/ext/accumulator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/accumulator.py b/ranger/ext/accumulator.py
index 7529471f..c0da8afb 100644
--- a/ranger/ext/accumulator.py
+++ b/ranger/ext/accumulator.py
@@ -6,6 +6,8 @@ class Accumulator(object):
 	def move(self, relative=0, absolute=None):
 		i = self.pointer
 		lst = self.get_list()
+		if not lst:
+			return self.pointer
 		length = len(lst)
 
 		if isinstance(absolute, int):
0&id=27eec7c6b53303acfd7713f7cc696ea50894a6b1'>27eec7c6 ^
884a6e12 ^

27eec7c6 ^




884a6e12 ^
27eec7c6 ^


19978ad2 ^
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