[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 2fe64cd 036/395: swiper.el (swiper--isearch-h
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 2fe64cd 036/395: swiper.el (swiper--isearch-highlight): Don't hang on empty match data |
Date: |
Thu, 25 Feb 2021 08:31:26 -0500 (EST) |
branch: externals/ivy-hydra
commit 2fe64cdac1fe9ebaad7d3b035f51d212c4f731a3
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
swiper.el (swiper--isearch-highlight): Don't hang on empty match data
---
swiper.el | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/swiper.el b/swiper.el
index eae89be..eeb941d 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1558,16 +1558,19 @@ When not running `swiper-isearch' already, start it."
(defun swiper--isearch-highlight (str &optional current)
(let ((start 0)
(i 0))
- (while (string-match ivy--old-re str start)
- (setq start (match-end 0))
- (swiper--add-properties
- (if (eq current i)
- swiper-faces
- swiper-background-faces)
- (lambda (beg end face _priority)
- (ivy-add-face-text-property
- beg end face str)))
- (cl-incf i))
+ (catch 'done
+ (while (string-match ivy--old-re str start)
+ (if (= (match-beginning 0) (match-end 0))
+ (throw 'done t)
+ (setq start (match-end 0)))
+ (swiper--add-properties
+ (if (eq current i)
+ swiper-faces
+ swiper-background-faces)
+ (lambda (beg end face _priority)
+ (ivy-add-face-text-property
+ beg end face str)))
+ (cl-incf i)))
str))
(defun swiper--isearch-format (index length cands regex current buffer)
- [elpa] externals/ivy-hydra 1ad457d 007/395: ivy.el (ivy-read-action-function): Fix type, (continued)
- [elpa] externals/ivy-hydra 1ad457d 007/395: ivy.el (ivy-read-action-function): Fix type, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f6b3b29 011/395: counsel.el (counsel-compile-forget-command): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7b1af79 012/395: counsel.el (counsel--projectile-root): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 32c097a 004/395: counsel.el (counsel-search): Rename from counsel-google and add DDG, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 884dd9e 025/395: counsel.el (counsel--git-grep-occur-cmd): Handle case folding, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9666820 037/395: swiper.el (swiper--add-overlays): Don't miss highlights when at eol, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ad00c47 039/395: swiper.el (swiper--re-builder): Treat "\n" in input as a newline, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 64d18d1 002/395: counsel.el (counsel-ag): Respect case sensitivity settings, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b0029ca 010/395: Make casefold settings for counsel-git-grep work., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a2a3263 014/395: ivy.el (ivy-initial-inputs-alist): Add default behavior, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 2fe64cd 036/395: swiper.el (swiper--isearch-highlight): Don't hang on empty match data,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra f50104c 021/395: ivy.el (ivy--cd-maybe): Exit with 'no-update-history, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3b35b45 015/395: counsel.el (counsel-ack): Fix, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 47e5046 027/395: swiper.el (swiper--isearch-function-1): Don't skip match at eobp, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 43daeb1 029/395: counsel.el (counsel-git-grep): Set :require-match to t in `ivy-read', Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d28cd03 048/395: ivy.el (file-local-name): Define unless already defined, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e1cfd32 052/395: ivy.el (ivy-use-group-face-if-no-groups): New defcustom, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4f81b22 006/395: counsel.el (counsel-search-engines-alist): Fix, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 096ff2a 020/395: counsel.el: Fix compiler warning, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6ed0ad4 032/395: counsel.el (counsel-ag): Set :require-match to t., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 03fb20e 033/395: ivy.el (ivy-help): Insert "describe-mode" outline, Basil L. Contovounesios, 2021/02/25