]> code.delx.au - gnu-emacs-elpa/commitdiff
counsel.el (counsel--async-sentinel): Re-display when no cands
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 11 Jan 2016 20:25:56 +0000 (21:25 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 11 Jan 2016 20:25:56 +0000 (21:25 +0100)
counsel.el

index 9c9bccac33a560cb55456ee99fc28388b7d979af..4a734d492960c4d6fb6850fed6bece12d62720f5 100644 (file)
@@ -560,7 +560,9 @@ Or the time of the last minibuffer update.")
               (ivy--recompute-index
                ivy-text re ivy--all-candidates)))
           (setq ivy--old-cands ivy--all-candidates))
-        (ivy--exhibit))
+        (if (null ivy--all-candidates)
+            (ivy--insert-minibuffer "")
+          (ivy--exhibit)))
     (if (string= event "exited abnormally with code 1\n")
         (progn
           (setq ivy--all-candidates '("Error"))