diff options
author | hut <hut@lavabit.com> | 2010-04-08 00:13:16 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-08 00:13:16 +0200 |
commit | 37899948600f73c014ea6e933b2cbb85e07d9f5e (patch) | |
tree | 8b1ebcee8686d6b4ebcdb645e0df8c5baed70efa | |
parent | d6e2900a1c900a5224a3cadec5c0562ad174d0ef (diff) | |
download | ranger-37899948600f73c014ea6e933b2cbb85e07d9f5e.tar.gz |
ext.direction: bugfix
-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)) |