summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/ext/direction.py2
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))