branch: master
commit 539fe7d8b26ce7bea248411f084bfd9fd5ef4f12
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-completions): Fix an optimization
---
ivy.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index ebbb186..23b4552 100644
--- a/ivy.el
+++ b/ivy.el
@@ -553,7 +553,9 @@ CANDIDATES is a list of strings."
(cands (cond ((and (equal re ivy--old-re)
ivy--old-cands)
ivy--old-cands)
- ((and ivy--old-re (eq 0 (cl-search ivy--old-re re)))
+ ((and ivy--old-re
+ (not (equal ivy--old-re ""))
+ (eq 0 (cl-search ivy--old-re re)))
(ignore-errors
(cl-remove-if-not
(lambda (x) (string-match re x))