branch: master commit f52b0ac58a84e8bb8c29f68e031d4896875d145d Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy--filter): Don't cache if ivy--old-cands is empty Fixes the `counsel-find-file' use case where dotfiles appear if there are no other matches. --- ivy.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ivy.el b/ivy.el index 5dc89d9..fdf5389 100644 --- a/ivy.el +++ b/ivy.el @@ -3090,7 +3090,8 @@ CANDIDATES are assumed to be static." (substring ivy--old-re 0 -2) ivy--old-re) re) - '(0 2))) + '(0 2)) + ivy--old-cands) (ivy--re-filter re ivy--old-cands)) (matcher (funcall matcher re candidates))