branch: externals/avy
commit 343fc42de17d23f9886457a5113218ccc5b9c379
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
avy.el (avy-process): Return nil on "C-g" and "ESC"
---
avy.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/avy.el b/avy.el
index 0990d4994e..92fbc7859c 100644
--- a/avy.el
+++ b/avy.el
@@ -455,7 +455,7 @@ KEYS is the path from the root of `avy-tree' to LEAF."
(throw 'done 'restart))
((memq char '(27 ?\C-g))
;; exit silently
- (throw 'done 'exit))
+ (throw 'done 'abort))
((eq char ??)
(avy-show-dispatch-help)
(throw 'done 'restart))
@@ -867,6 +867,8 @@ multiple OVERLAY-FN invocations."
(avy-process original-cands overlay-fn cleanup-fn))
;; ignore exit from `avy-handler-function'
((eq res 'exit))
+ ((eq res 'abort)
+ nil)
(t
(funcall avy-pre-action res)
(setq res (car res))