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

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

[elpa] externals/ivy-hydra cfb395e 239/395: counsel.el (counsel--sync-se


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra cfb395e 239/395: counsel.el (counsel--sync-sentinel-on-exit): Simplify
Date: Thu, 25 Feb 2021 08:32:11 -0500 (EST)

branch: externals/ivy-hydra
commit cfb395ef07a515e1e805547c29046dc24464f395
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    counsel.el (counsel--sync-sentinel-on-exit): Simplify
    
    Re #2477
---
 counsel.el | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/counsel.el b/counsel.el
index dd66db5..db8e305 100644
--- a/counsel.el
+++ b/counsel.el
@@ -222,13 +222,12 @@ respectively."
               (if (eq (ivy-alist-setting ivy-index-functions-alist) 
'ivy-recompute-index-zero)
                   (ivy-set-index 0)
                 (ivy--recompute-index re ivy--all-candidates))
-            (unless (ivy-set-index
-                     (ivy--preselect-index
-                      (if (> (length re) 0)
-                          cur
-                        (ivy-state-preselect ivy-last))
-                      ivy--all-candidates))
-              (ivy--recompute-index re ivy--all-candidates))))
+            (ivy-set-index
+             (ivy--preselect-index
+              (if (> (length re) 0)
+                  cur
+                (ivy-state-preselect ivy-last))
+              ivy--all-candidates))))
         (setq ivy--old-cands ivy--all-candidates)
         (if ivy--all-candidates
             (ivy--exhibit)



reply via email to

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