about 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):