diff options
-rw-r--r-- | ranger/ext/accumulator.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/ext/accumulator.py b/ranger/ext/accumulator.py index c2e33b59..a41db634 100644 --- a/ranger/ext/accumulator.py +++ b/ranger/ext/accumulator.py @@ -75,8 +75,7 @@ class Accumulator(object): i = 0 if i >= len(lst): i = len(lst) - 1 - if i < 0: - i = 0 + i = max(0, i) self.pointer = i self.pointed_obj = lst[i] |