avy.el (avy-goto-line): Fix off-by-one

This commit is contained in:
Oleh Krehel 2015-09-11 12:24:02 +02:00
parent 67662efdb3
commit 3f53a2a15e

2
avy.el
View File

@ -958,7 +958,7 @@ Otherwise, forward to `goto-line' with ARG."
(if (not (memq arg '(1 4)))
(progn
(goto-char (point-min))
(forward-line arg))
(forward-line (1- arg)))
(avy-with avy-goto-line
(let* ((avy-handler-function
(lambda (char)