fix alt-e at the last error

This commit is contained in:
nightwing 2015-02-05 15:57:24 +04:00
commit d9e4b52ee1

View file

@ -62,7 +62,7 @@ function findAnnotations(session, row, dir) {
if (i < 0)
i = -i - 1;
if (i >= annotations.length - 1)
if (i >= annotations.length)
i = dir > 0 ? 0 : annotations.length - 1;
else if (i === 0 && dir < 0)
i = annotations.length - 1;