avy.el (avy-goto-line): Can cancel with ESC

Fixes #299
This commit is contained in:
Oleh Krehel 2020-03-11 12:06:02 +01:00
parent cf95ba9582
commit 3bf83140fa

2
avy.el
View File

@ -1746,7 +1746,7 @@ Otherwise, forward to `goto-line' with ARG."
(forward-line (1- (string-to-number line))))
(throw 'done 'exit))))))
(r (avy--line (eq arg 4))))
(when (and (not (eq r t)) (eq avy-action #'identity))
(when (and (not (memq r '(t nil))) (eq avy-action #'identity))
(avy-action-goto r))))))
;;;###autoload