branch: master commit cd8fb10759a5be2ded3a344d8c0e472eb9fef5e3 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
avy.el (avy--read-candidates): Quit on ESC Fixes #249 --- avy.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/avy.el b/avy.el index 1ee41f1..765779f 100644 --- a/avy.el +++ b/avy.el @@ -1917,6 +1917,9 @@ Otherwise, the whole regex is highlighted." (let ((l (length str))) (when (>= l 1) (setq str (substring str 0 (1- l)))))) + ;; Handle ESC + ((= char 27) + (keyboard-quit)) (t (setq str (concat str (list char))))) ;; Highlight