]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't allow lazy highlight from recursive minibuffers
authorAugusto Stoffel <arstoffel@gmail.com>
Mon, 12 Dec 2022 22:07:28 +0000 (23:07 +0100)
committerJuri Linkov <juri@linkov.net>
Tue, 13 Dec 2022 17:37:57 +0000 (19:37 +0200)
See bug#59918.

* lisp/isearch.el (minibuffer-lazy-highlight-setup): Don't activate
when starting a recursive minibuffer.

lisp/isearch.el

index bc3697deb0af981cd4f8095c7fec479e76259f1a..6a17d18c45ebf040da6e638e4934d5e04f4f3446 100644 (file)
@@ -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"))