Fix regression in isearch-yank-char-in-minibuffer

* lisp/isearch.el (isearch-yank-char-in-minibuffer): Select the
original window in order to restore point.  This is needed when
minibuffer lazy highlight is in effect.
This commit is contained in:
Augusto Stoffel 2022-03-23 19:43:13 +01:00 committed by Juri Linkov
parent 4ec23d922d
commit ac3bb7e754

View file

@ -2670,7 +2670,7 @@ or it might return the position of the end of the line."
(interactive "p")
(if (eobp)
(insert
(with-current-buffer (cadr (buffer-list))
(with-minibuffer-selected-window
(buffer-substring-no-properties
(point) (progn (forward-char arg) (point)))))
(forward-char arg)))