mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
avy.el (avy-process): Return nil on "C-g" and "ESC"
This commit is contained in:
parent
9ae059deaa
commit
343fc42de1
4
avy.el
4
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user