summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorAugusto Stoffel <arstoffel@gmail.com>2022-03-23 19:43:13 +0100
committerJuri Linkov <juri@linkov.net>2022-03-23 22:06:07 +0200
commitac3bb7e75413c1df60cf2de5c29e999df518a62d (patch)
treead73dfb80dd38ed78b5f8f3092699f23b9a4b21c /lisp/isearch.el
parent4ec23d922dc90ab697eb6f0ba119b1563abba111 (diff)
downloademacs-ac3bb7e75413c1df60cf2de5c29e999df518a62d.tar.gz
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.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 1a83586ef8a..9b311cb49ea 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)))