[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 888b417 350/399: ivy.el (ivy--recompute-index-inhibit): Ad
From: |
Oleh Krehel |
Subject: |
[elpa] master 888b417 350/399: ivy.el (ivy--recompute-index-inhibit): Add |
Date: |
Sat, 20 Jul 2019 14:57:55 -0400 (EDT) |
branch: master
commit 888b417700c3b7cef3e08bc378c60a68fa87d381
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy--recompute-index-inhibit): Add
---
ivy.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 7213945..69d0e4d 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3341,6 +3341,9 @@ before substring matches."
When the amount of matching candidates exceeds this limit, then
no sorting is done.")
+(defvar ivy--recompute-index-inhibit nil
+ "When non-nil, `ivy--recompute-index' is a no-op.")
+
(defun ivy--recompute-index (name re-str cands)
"Recompute index of selected candidate matching NAME.
RE-STR is the regexp, CANDS are the current candidates."
@@ -3351,7 +3354,8 @@ RE-STR is the regexp, CANDS are the current candidates."
(preselect (ivy-state-preselect ivy-last))
(current (ivy-state-current ivy-last))
(empty (string= name "")))
- (unless (memq this-command '(ivy-resume ivy-partial-or-done))
+ (unless (or (memq this-command '(ivy-resume ivy-partial-or-done))
+ ivy--recompute-index-inhibit)
(ivy-set-index
(if (or (string= name "")
(and (> (length cands) 10000) (eq func
#'ivy-recompute-index-zero)))
@@ -4055,7 +4059,8 @@ BUFFER may be a string or nil."
(setf (ivy-state-preselect ivy-last) ivy--index)
(setq ivy--old-re nil)
(setq ivy--all-candidates (delete (ivy-state-current ivy-last)
ivy--all-candidates))
- (ivy--exhibit))
+ (let ((ivy--recompute-index-inhibit t))
+ (ivy--exhibit)))
(defun ivy--kill-buffer-action (buffer)
"Kill BUFFER."
- [elpa] master cea24b7 339/399: counsel.el (counsel-expression-history): Remove obsolete command, (continued)
- [elpa] master cea24b7 339/399: counsel.el (counsel-expression-history): Remove obsolete command, Oleh Krehel, 2019/07/20
- [elpa] master 9f6141f 345/399: counsel.el (counsel--browse-history): Allow to remove elements with "C-k", Oleh Krehel, 2019/07/20
- [elpa] master 673c45e 342/399: ivy.el (ivy--minibuffer-setup): Set line-spacing to nil in the minibuffer, Oleh Krehel, 2019/07/20
- [elpa] master 8d7578f 346/399: counsel.el (counsel--browse-history): Better prompt, Oleh Krehel, 2019/07/20
- [elpa] master f9e8116 344/399: swiper.el (swiper-isearch-action): Fix outlines getting over-revealed, Oleh Krehel, 2019/07/20
- [elpa] master f29207f 324/399: Add ability to resume dynamic collections, Oleh Krehel, 2019/07/20
- [elpa] master 3b1a25b 331/399: ivy-test.el (counsel-find-file-with-dotfiles): Fix, Oleh Krehel, 2019/07/20
- [elpa] master 8fc254f 341/399: counsel.el (counsel--setq-doconst): Fix compiler warning, Oleh Krehel, 2019/07/20
- [elpa] master 1c436f6 347/399: ivy.el (ivy-reverse-i-search): Don't call another ivy-reverse-i-search, Oleh Krehel, 2019/07/20
- [elpa] master 975c2af 348/399: ivy.el (ivy-reverse-i-search): Error when called from top-level, Oleh Krehel, 2019/07/20
- [elpa] master 888b417 350/399: ivy.el (ivy--recompute-index-inhibit): Add,
Oleh Krehel <=
- [elpa] master 4c9c14a 356/399: ivy.el (ivy--minibuffer-cleanup): Rename from ivy--cleanup, Oleh Krehel, 2019/07/20
- [elpa] master 4324211 354/399: ivy.el (ivy-read): Factor out transformer-fn, Oleh Krehel, 2019/07/20
- [elpa] master d52c176 351/399: ivy.el (ivy-switch-buffer-kill): Move from "C-c C-k" to "C-k", Oleh Krehel, 2019/07/20
- [elpa] master 7925637 353/399: ivy.el (ivy--compute-extra-candidates): Extract, Oleh Krehel, 2019/07/20
- [elpa] master f6876a7 359/399: ivy.el (ivy-read): Simplify, Oleh Krehel, 2019/07/20
- [elpa] master 460d6e3 355/399: ivy.el (ivy-read): Refactor, Oleh Krehel, 2019/07/20
- [elpa] master ebac0e9 352/399: ivy.el (ivy--compute-extra-actions): Extract, Oleh Krehel, 2019/07/20
- [elpa] master bae8e46 361/399: ivy.el (ivy--magic-file-doubleslash-directory): Cd remote "/" on "//", Oleh Krehel, 2019/07/20
- [elpa] master a87bdd2 358/399: ivy.el (ivy-read): Refactor, Oleh Krehel, 2019/07/20
- [elpa] master 5e1c468 357/399: ivy.el (ivy--cleanup): Extract, Oleh Krehel, 2019/07/20