diff options
Diffstat (limited to 'lisp/comint.el')
| -rw-r--r-- | lisp/comint.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 6fb89e28181..70d6f85ff68 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1022,9 +1022,11 @@ See also `comint-read-input-ring'." | |||
| 1022 | (last-command last-command) | 1022 | (last-command last-command) |
| 1023 | (regexp (read-from-minibuffer prompt nil nil nil | 1023 | (regexp (read-from-minibuffer prompt nil nil nil |
| 1024 | 'minibuffer-history-search-history))) | 1024 | 'minibuffer-history-search-history))) |
| 1025 | ;; If the user didn't enter anything, nothing is added to m-h-s-h. | ||
| 1026 | ;; Use the previous search regexp, if there is one. | ||
| 1025 | (list (if (string-equal regexp "") | 1027 | (list (if (string-equal regexp "") |
| 1026 | (setcar minibuffer-history-search-history | 1028 | (or (car minibuffer-history-search-history) |
| 1027 | (nth 1 minibuffer-history-search-history)) | 1029 | regexp) |
| 1028 | regexp) | 1030 | regexp) |
| 1029 | (prefix-numeric-value current-prefix-arg)))) | 1031 | (prefix-numeric-value current-prefix-arg)))) |
| 1030 | 1032 | ||