From 4980ed7a6d96d5a8803fae6135804cd87faa6d59 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Mon, 12 Dec 2022 23:07:28 +0100 Subject: [PATCH] Don't allow lazy highlight from recursive minibuffers See bug#59918. * lisp/isearch.el (minibuffer-lazy-highlight-setup): Don't activate when starting a recursive minibuffer. --- lisp/isearch.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index bc3697deb0a..6a17d18c45e 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -4435,7 +4435,7 @@ CASE-FOLD: The value of `isearch-case-fold' to use for lazy highlighting. LAX-WHITESPACE: The value of `isearch-lax-whitespace' and `isearch-regexp-lax-whitespace' to use for lazy highlighting." - (if (not highlight) + (if (or (not highlight) (minibufferp)) #'ignore (let ((unwind (make-symbol "minibuffer-lazy-highlight--unwind")) (after-change (make-symbol "minibuffer-lazy-highlight--after-change")) -- 2.39.2