From 3f53a2a15e8f5c698ec7ec44f1df58e917fa0f38 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 11 Sep 2015 12:24:02 +0200 Subject: [PATCH] avy.el (avy-goto-line): Fix off-by-one --- avy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)