Skip to content

Commit

Permalink
Add lazy highlight to 'isearch-edit-string'
Browse files Browse the repository at this point in the history
* lisp/isearch.el (isearch-edit-string): Activate lazy highlight and
lazy count, provided 'isearch-lazy-highlight' respectively
'isearch-lazy-count' are non-nil.
  • Loading branch information
astoff authored and link0ff committed Mar 20, 2022
1 parent 0f7c3f5 commit ceb57e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lisp/isearch.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ceb57e1

Please sign in to comment.