avy.el (avy-order-closest): Work with avy-goto-line

Fixes #307
This commit is contained in:
Oleh Krehel 2020-06-24 13:48:19 +02:00
parent 2dde8b71a0
commit bbf1e7339e

5
avy.el
View File

@ -388,7 +388,10 @@ SEQ-LEN is how many elements of KEYS it takes to identify a match."
(nreverse path-alist)))
(defun avy-order-closest (x)
(abs (- (caar x) (point))))
(abs (- (if (numberp (car x))
(car x)
(caar x))
(point))))
(defvar avy-command nil
"Store the current command symbol.