]> git.eshelyaron.com Git - emacs.git/commit
* lisp/isearch.el: Fix corner cases of isearch-lazy-count.
authorJuri Linkov <juri@linkov.net>
Wed, 15 Jan 2020 00:02:53 +0000 (02:02 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 15 Jan 2020 00:02:53 +0000 (02:02 +0200)
commitfdee034ac83ae2c6b31ab7ebae248524cba17422
treee3795e9f06e743a8d071d65703ac10d28f39371f
parent7b14329d86aec2ad3d33de557ecb2ea103f6b0ea
* lisp/isearch.el: Fix corner cases of isearch-lazy-count.

* lisp/isearch.el (isearch-mode): Reset isearch-lazy-count-current
and isearch-lazy-count-total to nil, so when isearch-mode is started,
there should be no counts from previous Isearch.
(isearch-lazy-highlight-new-loop): Call isearch-message after resetting
lazy-count variables only when isearch-mode is started.  This avoids
the problem of inappropriate calls of isearch-message-function
when query-replace in the minibuffer performs lazy-highlighting that
used to call minibuffer-history-isearch-message unnecessarily.
lisp/isearch.el