branch: externals/avy commit 3bf83140fad4c28f2dc4c7107b9d8fef84d17cb9 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
avy.el (avy-goto-line): Can cancel with ESC Fixes #299 --- avy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avy.el b/avy.el index f89be2bad0..1184b1ac11 100644 --- a/avy.el +++ b/avy.el @@ -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