]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix regression in isearch-yank-char-in-minibuffer
authorAugusto Stoffel <arstoffel@gmail.com>
Wed, 23 Mar 2022 18:43:13 +0000 (19:43 +0100)
committerJuri Linkov <juri@linkov.net>
Wed, 23 Mar 2022 20:06:07 +0000 (22:06 +0200)
* 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.

lisp/isearch.el

index 1a83586ef8a1c4e7aa9d5a38ed413124226b2274..9b311cb49eac1e20dd69a6b56dfe024792693840 100644 (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)))