about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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):