summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-08 00:13:16 +0200
committerhut <hut@lavabit.com>2010-04-08 00:13:16 +0200
commit37899948600f73c014ea6e933b2cbb85e07d9f5e (patch)
tree8b1ebcee8686d6b4ebcdb645e0df8c5baed70efa
parentd6e2900a1c900a5224a3cadec5c0562ad174d0ef (diff)
downloadranger-37899948600f73c014ea6e933b2cbb85e07d9f5e.tar.gz
ext.direction: bugfix
-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))