[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b1c6cc8 300/348: swiper.el (swiper-all): Fix case-fold-sea
From: |
Oleh Krehel |
Subject: |
[elpa] master b1c6cc8 300/348: swiper.el (swiper-all): Fix case-fold-search |
Date: |
Sat, 8 Apr 2017 11:04:19 -0400 (EDT) |
branch: master
commit b1c6cc885142c7b81ed0dd53e65f716a7adc94f7
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
swiper.el (swiper-all): Fix case-fold-search
* swiper.el (swiper--add-overlays): Set `case-fold-search'.
Fixes #880
---
swiper.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/swiper.el b/swiper.el
index 7dc34fa..0ed3a8d 100644
--- a/swiper.el
+++ b/swiper.el
@@ -611,7 +611,9 @@ WND, when specified is the window."
(point))))
(end (or end (save-excursion
(forward-line wh)
- (point)))))
+ (point))))
+ (case-fold-search (and ivy-case-fold-search
+ (string= re (downcase re)))))
(when (>= (length re) swiper-min-highlight)
(save-excursion
(goto-char beg)
@@ -780,7 +782,10 @@ Run `swiper' for those buffers."
(let* ((buffers (cl-remove-if-not #'swiper-all-buffer-p (buffer-list)))
(re-full (funcall ivy--regex-function str))
re re-tail
- cands match)
+ cands match
+ (case-fold-search
+ (and ivy-case-fold-search
+ (string= str (downcase str)))))
(if (stringp re-full)
(setq re re-full)
(setq re (caar re-full))
- [elpa] master 03f90af 324/348: ivy.el (ivy-rotate-sort): Guard against nil sort, (continued)
- [elpa] master 03f90af 324/348: ivy.el (ivy-rotate-sort): Guard against nil sort, Oleh Krehel, 2017/04/08
- [elpa] master ac944ea 325/348: ivy.el: Remove with-ivy-window, Oleh Krehel, 2017/04/08
- [elpa] master 18da759 320/348: ivy.el: Remove ivy--current, Oleh Krehel, 2017/04/08
- [elpa] master 20744aa 337/348: doc/Changelog.org: Prepare for 0.9.0, Oleh Krehel, 2017/04/08
- [elpa] master 13a3f2d 342/348: doc/Changelog.org: Sort stuff, Oleh Krehel, 2017/04/08
- [elpa] master 69dfed9 146/348: counsel.el (counsel-dpkg): Remove typo, Oleh Krehel, 2017/04/08
- [elpa] master 55a90c9 152/348: Make with-ivy-window not necessary in action, Oleh Krehel, 2017/04/08
- [elpa] master 9d693ec 158/348: Use a lighter color for ivy-remote in dark themes, Oleh Krehel, 2017/04/08
- [elpa] master 9b13aa4 170/348: ivy.el (ivy-flip): Allow to flip candidates/input, Oleh Krehel, 2017/04/08
- [elpa] master 2bc1d7b 276/348: ivy.el (ivy--occur-insert-lines): Scroll to first cand, Oleh Krehel, 2017/04/08
- [elpa] master b1c6cc8 300/348: swiper.el (swiper-all): Fix case-fold-search,
Oleh Krehel <=
- [elpa] master c3f5f28 305/348: Add circe-mode to swiper-font-lock-exclude, Oleh Krehel, 2017/04/08
- [elpa] master 7100925 302/348: ivy.el (ivy-completing-read-handlers-alist): New defcustom, Oleh Krehel, 2017/04/08
- [elpa] master b894874 309/348: ivy.el (ivy-occur-grep-mode): Call wgrep-setup if available, Oleh Krehel, 2017/04/08
- [elpa] master 80d3fe3 310/348: Fix compilation warnings, Oleh Krehel, 2017/04/08
- [elpa] master b0ccc7a 312/348: README.md: Recommend enable-recursive-minibuffers, Oleh Krehel, 2017/04/08
- [elpa] master 1ac1cc1 316/348: ivy.el (ivy-completing-read): Don't require-match for null, Oleh Krehel, 2017/04/08
- [elpa] master 7ca301b 334/348: swiper.el (swiper-goto-start-of-match) New defcustom, Oleh Krehel, 2017/04/08
- [elpa] master fc2e198 335/348: swiper.el (swiper--action): Set evil search direction to forward, Oleh Krehel, 2017/04/08
- [elpa] master 718a06b 345/348: doc/Changelog.org: Fix links, Oleh Krehel, 2017/04/08
- [elpa] master 802c9da 271/348: counsel.el: Add counsel-command-history, Oleh Krehel, 2017/04/08