branch: externals/ivy-hydra
commit cfb395ef07a515e1e805547c29046dc24464f395
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)