mirror of
https://github.com/abo-abo/avy.git
synced 2026-02-04 14:52:25 +00:00
avy.el (avy-goto-line): Fix off-by-one
This commit is contained in:
2
avy.el
2
avy.el
@@ -958,7 +958,7 @@ Otherwise, forward to `goto-line' with ARG."
|
|||||||
(if (not (memq arg '(1 4)))
|
(if (not (memq arg '(1 4)))
|
||||||
(progn
|
(progn
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(forward-line arg))
|
(forward-line (1- arg)))
|
||||||
(avy-with avy-goto-line
|
(avy-with avy-goto-line
|
||||||
(let* ((avy-handler-function
|
(let* ((avy-handler-function
|
||||||
(lambda (char)
|
(lambda (char)
|
||||||
|
|||||||
Reference in New Issue
Block a user