[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0a9fb0c 009/184: swiper.el (swiper--isearch-function): Ref
From: |
Oleh Krehel |
Subject: |
[elpa] master 0a9fb0c 009/184: swiper.el (swiper--isearch-function): Refactor |
Date: |
Wed, 16 Oct 2019 13:14:39 -0400 (EDT) |
branch: master
commit 0a9fb0c735f9e55879eb9ef317ab382f7a3b0326
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
swiper.el (swiper--isearch-function): Refactor
---
swiper.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/swiper.el b/swiper.el
index 8820949..9b57894 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1336,11 +1336,11 @@ See `ivy-format-functions-alist' for further
information."
(nreverse cands)))))
(defun swiper--isearch-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)
+ (let ((re-full (funcall ivy--regex-function str)))
+ (unless (equal re-full "")
+ (let* ((case-fold-search (ivy--case-fold-p str))
+ (re (ivy-re-to-str re-full))
+ (re (if (string-match "\\`\\(.*\\)[\\]|\\'" re)
(match-string 1 re)
re))
(res (swiper--isearch-function-1 re swiper--isearch-backward))
- [elpa] master updated (22e3e88 -> c2d3a4c), Oleh Krehel, 2019/10/16
- [elpa] master 196b4ea 001/184: doc/Makefile: Add target to install the info pages, Oleh Krehel, 2019/10/16
- [elpa] master 0a9fb0c 009/184: swiper.el (swiper--isearch-function): Refactor,
Oleh Krehel <=
- [elpa] master f0ec850 005/184: swiper.el (swiper-isearch): Fix for ivy-resume, Oleh Krehel, 2019/10/16
- [elpa] master 2a036b8 002/184: swiper.el (swiper--isearch-function): Change., Oleh Krehel, 2019/10/16
- [elpa] master ad0f605 008/184: swiper.el (swiper--isearch-function-1): Extract, Oleh Krehel, 2019/10/16
- [elpa] master dc7f5e0 012/184: swiper.el (swiper--isearch-function): Works for ivy--regex-ignore-order, Oleh Krehel, 2019/10/16
- [elpa] master 50ead7e 013/184: ivy-test.el (swiper-thing-at-point): Add and fix test, Oleh Krehel, 2019/10/16
- [elpa] master ec3e062 034/184: counsel (counsel-file-jump): Use temp buffer instead of split-string, Oleh Krehel, 2019/10/16
- [elpa] master 13be8ab 004/184: ivy.el (ivy--reset-state): Fix ivy-resume, Oleh Krehel, 2019/10/16
- [elpa] master 039353d 007/184: ivy.el (ivy--preselect-index): Fix ivy-resume for swiper-isearch, Oleh Krehel, 2019/10/16
- [elpa] master c7ffd06 016/184: swiper.el (swiper-isearch-action): Make ivy-previous-line-or-history work, Oleh Krehel, 2019/10/16
- [elpa] master b4c4a7f 011/184: swiper.el (swiper--isearch-next-item): Extract, Oleh Krehel, 2019/10/16