branch: master
commit 3f53a2a15e8f5c698ec7ec44f1df58e917fa0f38
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
avy.el (avy-goto-line): Fix off-by-one
---
avy.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/avy.el b/avy.el
index ca46916..f46911d 100644
--- a/avy.el
+++ b/avy.el
@@ -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)