branch: master
commit d841418ca0240c3c7d0d670059fa1d2f35190204
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    Fix the transition from a bad regex to good one
    
    * ivy.el (ivy--filter): Update.
    
    Fixes #93
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index d789e0a..d4e99e8 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1063,7 +1063,7 @@ CANDIDATES are assumed to be static."
             (or (cl-position (ivy-state-preselect ivy-last)
                              cands :test 'equal)
                 ivy--index)))
-    (setq ivy--old-re re)
+    (setq ivy--old-re (if cands re ""))
     (setq ivy--old-cands cands)))
 
 (defun ivy--format (cands)

Reply via email to