(isearch-edit-string): Use search-ring-yank-pointer
and regexp-search-ring-yank-pointer for the HISTPOS argument of read-from-minibuffer to provide the correct initial minibuffer history position in isearch-edit-string when it is called from isearch-ring-adjust.
This commit is contained in:
parent
b0fb2dee9a
commit
363de02ef0
1 changed files with 5 additions and 1 deletions
|
@ -1055,7 +1055,11 @@ If first char entered is \\[isearch-yank-word-or-char], then do word search inst
|
|||
(isearch-message-prefix nil nil isearch-nonincremental)
|
||||
isearch-string
|
||||
minibuffer-local-isearch-map nil
|
||||
(if isearch-regexp 'regexp-search-ring 'search-ring)
|
||||
(if isearch-regexp
|
||||
(cons 'regexp-search-ring
|
||||
(1+ (or regexp-search-ring-yank-pointer -1)))
|
||||
(cons 'search-ring
|
||||
(1+ (or search-ring-yank-pointer -1))))
|
||||
nil t)
|
||||
isearch-new-message
|
||||
(mapconcat 'isearch-text-char-description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue