mu4e-headers: save-excursion when updating message

Otherwise, the updated header may end up in the wrong buffer.

Fixes: #2172.
This commit is contained in:
Dirk-Jan C. Binnema 2021-10-31 11:42:50 +02:00
parent 6005cf1b6c
commit aebec9714b
1 changed files with 1 additions and 1 deletions

View File

@ -745,7 +745,7 @@ headers."
;; update it; that way, the flags can be updated, as well as the path
;; (which is useful for viewing the raw message)
(when (and maybe-view (mu4e~headers-view-this-message-p docid))
(mu4e-view msg))
(save-excursion (mu4e-view msg)))
;; now, if this update was about *moving* a message, we don't show it
;; anymore (of course, we cannot be sure if the message really no
;; longer matches the query, but this seem a good heuristic. if it