summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorAugusto Stoffel <arstoffel@gmail.com>2022-12-12 23:07:28 +0100
committerJuri Linkov <juri@linkov.net>2022-12-13 19:37:57 +0200
commit4980ed7a6d96d5a8803fae6135804cd87faa6d59 (patch)
tree6b5cd2430f3034dd26791637a158621fe6b16447 /lisp/isearch.el
parent4ef8b9f5441cce75c53579317220b763ce83e3b9 (diff)
downloademacs-4980ed7a6d96d5a8803fae6135804cd87faa6d59.tar.gz
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.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el2
1 files changed, 1 insertions, 1 deletions
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"))