mu4e-view: select window when operating in headers context

Fixes #2398
This commit is contained in:
Dirk-Jan C. Binnema 2023-01-14 19:45:18 +02:00
parent 10838a2c58
commit a8d2476f08
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,9 @@ Then, display the results."
(unless docid
(mu4e-error "Message without docid: action is not possible"))
(with-current-buffer buffer
;;(mu4e-display-buffer buffer)
;; make sure to select the window, or jumping won't
;; be reflected.
(select-window (get-buffer-window))
(if (or (mu4e~headers-goto-docid docid)
;; TODO: Is this the best way to find another
;; relevant docid for a view buffer?