diff options
-rw-r--r-- | ranger/ext/direction.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/direction.py b/ranger/ext/direction.py index afb27aa3..d6b465cd 100644 --- a/ranger/ext/direction.py +++ b/ranger/ext/direction.py @@ -130,7 +130,7 @@ class Direction(dict): def select(self, lst, current, pagesize, override=None, offset=1): dest = self.move(direction=self.down(), override=override, - current=current, pagesize=pagesize, minimum=0, maximum=len(lst)) + current=current, pagesize=pagesize, minimum=0, maximum=len(lst)+1) selection = lst[min(current, dest):max(current, dest) + offset] return dest + offset - 1, selection |