emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master cd8fb10 081/110: avy.el (avy--read-candidates): Quit on ES


From: Oleh Krehel
Subject: [elpa] master cd8fb10 081/110: avy.el (avy--read-candidates): Quit on ESC
Date: Sat, 11 May 2019 10:15:49 -0400 (EDT)

branch: master
commit cd8fb10759a5be2ded3a344d8c0e472eb9fef5e3
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]