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 417f3add..0b3f55f7 100644 --- a/ranger/ext/direction.py +++ b/ranger/ext/direction.py @@ -132,4 +132,4 @@ class Direction(dict): pos += maximum else: pos += current - return int(max(min(pos, maximum + offset), minimum)) + return int(max(min(pos, maximum + offset - 1), minimum)) |