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

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

[elpa] externals/avy 3bf83140fa 16/31: avy.el (avy-goto-line): Can cance


From: ELPA Syncer
Subject: [elpa] externals/avy 3bf83140fa 16/31: avy.el (avy-goto-line): Can cancel with ESC
Date: Mon, 13 Feb 2023 21:57:26 -0500 (EST)

branch: externals/avy
commit 3bf83140fad4c28f2dc4c7107b9d8fef84d17cb9
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@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



reply via email to

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