branch: master
commit bc96feb15940b65dc2419c46e0a90c85c5b44a2a
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--recompute-index): Update condition
---
ivy.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ivy.el b/ivy.el
index 48dd39f..58071a5 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2481,9 +2481,8 @@ Prefer first \"^*NAME\", then \"^NAME\"."
(cl-position (nth ivy--index ivy--old-cands)
cands))
(funcall func re-str cands))))
- (when (and (or (string= name "")
- (string= name "^"))
- (not (equal ivy--old-re "")))
+ (when (or (string= name "")
+ (string= name "^"))
(setq ivy--index
(or (ivy--preselect-index
(ivy-state-preselect ivy-last)