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

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

[elpa] master abe150c 082/110: Introduce single candidate jump customiza


From: Oleh Krehel
Subject: [elpa] master abe150c 082/110: Introduce single candidate jump customization
Date: Sat, 11 May 2019 10:15:49 -0400 (EDT)

branch: master
commit abe150c7bdc99623df6bd19669dc28f145c8fa01
Author: Yuki <address@hidden>
Commit: Yuki <address@hidden>

    Introduce single candidate jump customization
---
 avy.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/avy.el b/avy.el
index 765779f..50f0214 100644
--- a/avy.el
+++ b/avy.el
@@ -244,6 +244,10 @@ When nil, punctuation chars will not be matched.
 Typically, these modes don't use the text representation."
   :type 'list)
 
+(defcustom avy-single-candidate-jump t
+  "In case there is only one candidate jumps directly to it."
+  :type 'boolean)
+
 (defvar avy-ring (make-ring 20)
   "Hold the window and point history.")
 
@@ -746,7 +750,7 @@ Set `avy-style' according to COMMMAND as well."
   (let ((len (length candidates)))
     (cond ((= len 0)
            nil)
-          ((= len 1)
+          ((and (= len 1) avy-single-candidate-jump)
            (car candidates))
           (t
            (unwind-protect



reply via email to

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