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

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

[elpa] master 4ca721c 022/399: swiper.el (swiper-avy): If the input is 1


From: Oleh Krehel
Subject: [elpa] master 4ca721c 022/399: swiper.el (swiper-avy): If the input is 1 char, re-highlight
Date: Sat, 20 Jul 2019 14:56:40 -0400 (EDT)

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

    swiper.el (swiper-avy): If the input is 1 char, re-highlight
    
    Fixes #1915
---
 swiper.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/swiper.el b/swiper.el
index 66ad50e..caadc62 100644
--- a/swiper.el
+++ b/swiper.el
@@ -235,6 +235,9 @@
   (unless (require 'avy nil 'noerror)
     (error "Package avy isn't installed"))
   (unless (string= ivy-text "")
+    (when (= 1 (length ivy-text))
+      (let ((swiper-min-highlight 1))
+        (swiper--update-input-ivy)))
     (swiper--avy-goto (swiper--avy-candidate))))
 
 (declare-function mc/create-fake-cursor-at-point "ext:multiple-cursors-core")



reply via email to

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