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

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

[elpa] master 9c1e1c3 216/399: swiper.el (swiper-isearch-function): Obey


From: Oleh Krehel
Subject: [elpa] master 9c1e1c3 216/399: swiper.el (swiper-isearch-function): Obey ivy-case-fold-search-default
Date: Sat, 20 Jul 2019 14:57:26 -0400 (EDT)

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

    swiper.el (swiper-isearch-function): Obey ivy-case-fold-search-default
    
    Fixes #2039
---
 swiper.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/swiper.el b/swiper.el
index b643756..7c81acf 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1214,7 +1214,8 @@ come back to the same place as when \"a\" was initially 
entered.")
 
 (defun swiper-isearch-function (str)
   "Collect STR matches in the current buffer for `swiper-isearch'."
-  (let* ((re-full (funcall ivy--regex-function str))
+  (let* ((case-fold-search (ivy--case-fold-p str))
+         (re-full (funcall ivy--regex-function str))
          (re (ivy-re-to-str re-full)))
     (unless (string= re "")
       (let ((re (if (string-match "\\`\\(.*\\)[\\]|\\'" re)



reply via email to

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