diff options
author | Augusto Stoffel <arstoffel@gmail.com> | 2022-03-23 19:43:13 +0100 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2022-03-23 22:06:07 +0200 |
commit | ac3bb7e75413c1df60cf2de5c29e999df518a62d (patch) | |
tree | ad73dfb80dd38ed78b5f8f3092699f23b9a4b21c /lisp/isearch.el | |
parent | 4ec23d922dc90ab697eb6f0ba119b1563abba111 (diff) | |
download | emacs-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.el | 2 |
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))) |