emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ac3bb7e754: Fix regression in isearch-yank-char-in-minibuffer


From: Juri Linkov
Subject: master ac3bb7e754: Fix regression in isearch-yank-char-in-minibuffer
Date: Wed, 23 Mar 2022 16:06:37 -0400 (EDT)

branch: master
commit ac3bb7e75413c1df60cf2de5c29e999df518a62d
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Juri Linkov <juri@linkov.net>

    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.
---
 lisp/isearch.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/isearch.el b/lisp/isearch.el
index 1a83586ef8..9b311cb49e 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]