Revert "Merge pull request #1099 from stsquad/fix-header-history"

This reverts commit ba75ef4b87, reversing
changes made to e735e70fa4.
This commit is contained in:
djcb
2017-06-18 11:25:53 +03:00
parent 72db436a63
commit cde35be271

View File

@ -1387,10 +1387,11 @@ searching. If SHOW is non-nil, show the message with MSGID."
;; `mu4e~headers-query-next' or `mu4e~headers-query-prev'." ;; `mu4e~headers-query-next' or `mu4e~headers-query-prev'."
(interactive) (interactive)
(let* ((prompt (mu4e-format (or prompt "Search for: "))) (let* ((prompt (mu4e-format (or prompt "Search for: ")))
(expr (expr
(read-string prompt (if edit
(if edit expr nil) (read-string prompt expr)
'mu4e~headers-search-hist))) (or expr
(read-string prompt nil 'mu4e~headers-search-hist)))))
(mu4e-mark-handle-when-leaving) (mu4e-mark-handle-when-leaving)
(mu4e~headers-search-execute expr ignore-history) (mu4e~headers-search-execute expr ignore-history)
(setq mu4e~headers-msgid-target msgid (setq mu4e~headers-msgid-target msgid