branch: master commit 78dd554a3a3f078351bb5ea3085cb6b7dbc60660 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy--exhibit): Handle ivy--reset-state initial call It may set `ivy--all-candidates' to 0. Set `ivy--old-re' to nil, so we get highlighting with `ivy--highlight-default'. Re #2263 --- ivy.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ivy.el b/ivy.el index 25d7635..f09e88b 100644 --- a/ivy.el +++ b/ivy.el @@ -3131,9 +3131,14 @@ Should be run via minibuffer `post-command-hook'." (setq coll (funcall (ivy-state-collection ivy-last) ivy-text)) (when (eq coll 0) (setq coll nil) + (setq ivy--old-re nil) (setq in-progress t)) (setq ivy--all-candidates (ivy--sort-maybe coll)) (setq ivy--old-text ivy-text))) + (when (eq ivy--all-candidates 0) + (setq ivy--all-candidates nil) + (setq ivy--old-re nil) + (setq in-progress t)) (when (or ivy--all-candidates (and (not (get-process " *counsel*")) (not in-progress)))