avy.el (avy-goto-line): Fixup goto-line clause

Fixes #79
This commit is contained in:
Oleh Krehel 2015-07-16 22:03:25 +02:00
parent 3b9a60a334
commit 26123a7b37

9
avy.el
View File

@ -932,7 +932,7 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
The window scope is determined by `avy-all-windows' (ARG negates it)."
(interactive "P")
(avy-with avy-goto-line
(let ((avy-handler-function
(let* ((avy-handler-function
(lambda (char)
(if (or (< char ?0)
(> char ?9))
@ -943,9 +943,10 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
(push-mark)
(goto-char (point-min))
(forward-line (1- (string-to-number line)))
(throw 'done 'exit)))))))
(avy-action-goto
(avy--line arg)))))
(throw 'done 'exit))))))
(r (avy--line arg)))
(unless (eq r t)
(avy-action-goto r)))))
;;;###autoload
(defun avy-copy-line (arg)