Skip to content

Commit

Permalink
Merge pull request #1099 from stsquad/fix-header-history
Browse files Browse the repository at this point in the history
mu4e: don't loose search history when editing search
  • Loading branch information
djcb committed Jun 17, 2017
2 parents e735e70 + 9d06d72 commit ba75ef4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mu4e/mu4e-headers.el
Original file line number Diff line number Diff line change
Expand Up @@ -1387,11 +1387,10 @@ searching. If SHOW is non-nil, show the message with MSGID."
;; `mu4e~headers-query-next' or `mu4e~headers-query-prev'."
(interactive)
(let* ((prompt (mu4e-format (or prompt "Search for: ")))
(expr
(if edit
(read-string prompt expr)
(or expr
(read-string prompt nil 'mu4e~headers-search-hist)))))
(expr
(read-string prompt
(if edit expr nil)
'mu4e~headers-search-hist)))
(mu4e-mark-handle-when-leaving)
(mu4e~headers-search-execute expr ignore-history)
(setq mu4e~headers-msgid-target msgid
Expand Down

0 comments on commit ba75ef4

Please sign in to comment.