emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 3f53a2a 30/78: avy.el (avy-goto-line): Fix off-by-one


From: Oleh Krehel
Subject: [elpa] master 3f53a2a 30/78: avy.el (avy-goto-line): Fix off-by-one
Date: Sat, 23 Jan 2016 13:59:52 +0000

branch: master
commit 3f53a2a15e8f5c698ec7ec44f1df58e917fa0f38
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]