branch: externals/ivy-hydra
commit 01d9f55d0132ae2ed8ecef60be0d3d614fc28ee8
Author: Muir Manders <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el: Fix minibuffer highlighter selction
Instead of looking at `ivy--regex-function', look at
`ivy-re-builders-alist' for the current caller.
Fixes #2167
Fixes #2649
---
ivy.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index d4c0b81..26e20ae 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2235,7 +2235,8 @@ This is useful for recursive `ivy-read'."
(setq ivy-use-ignore ivy-use-ignore-default)
(setf (ivy-state-ignore state) ivy-use-ignore)
(setq ivy--highlight-function
- (or (cdr (assq ivy--regex-function ivy-highlight-functions-alist))
+ (or (cdr (assq (ivy-alist-setting ivy-re-builders-alist)
+ ivy-highlight-functions-alist))
#'ivy--highlight-default))
(let ((ivy-recursive-restore nil)
coll sort-fn)