branch: master commit 4ca721c3b5fdd3029ff83df4f4d8d8ccb3330d12 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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")