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

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

[elpa] master 539fe7d 07/18: ivy.el (ivy-completions): Fix an optimizati


From: Oleh Krehel
Subject: [elpa] master 539fe7d 07/18: ivy.el (ivy-completions): Fix an optimization
Date: Mon, 20 Apr 2015 12:39:03 +0000

branch: master
commit 539fe7d8b26ce7bea248411f084bfd9fd5ef4f12
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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))



reply via email to

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