]> git.eshelyaron.com Git - emacs.git/commitdiff
Add lazy highlight to 'isearch-edit-string'
authorAugusto Stoffel <arstoffel@gmail.com>
Sun, 20 Mar 2022 19:49:32 +0000 (20:49 +0100)
committerJuri Linkov <juri@linkov.net>
Sun, 20 Mar 2022 20:25:35 +0000 (22:25 +0200)
* lisp/isearch.el (isearch-edit-string): Activate lazy highlight and
lazy count, provided 'isearch-lazy-highlight' respectively
'isearch-lazy-count' are non-nil.

lisp/isearch.el

index 1ee5f2e9a829bf8c89e80b6e28b698615da088f9..1a83586ef8a1c4e7aa9d5a38ed413124226b2274 100644 (file)
@@ -1812,6 +1812,8 @@ The following additional command keys are active while editing.
          (minibuffer-history-symbol)
          ;; Search string might have meta information on text properties.
          (minibuffer-allow-text-properties t))
+     (when isearch-lazy-highlight
+       (add-hook 'minibuffer-setup-hook #'minibuffer-lazy-highlight-setup))
      (setq isearch-new-string
           (read-from-minibuffer
            (isearch-message-prefix nil isearch-nonincremental)