mu4e-view: fix mu4e-view-refresh

It's didn't quite work in the post-mu4e-window world
This commit is contained in:
Dirk-Jan C. Binnema 2023-07-17 18:58:48 +03:00
parent c19c011b0b
commit c263e4c4d7
1 changed files with 5 additions and 3 deletions

View File

@ -736,10 +736,12 @@ determine which browser function to use."
(defun mu4e-view-refresh ()
"Refresh the message view."
;;; XXX: sometimes, side-effect: increase the header-buffers size
(interactive)
(when (derived-mode-p 'mu4e-view-mode)
(kill-buffer)
(mu4e-view mu4e--view-message)))
(when-let ((msg (and (derived-mode-p 'mu4e-view-mode)
mu4e--view-message)))
(mu4e-view-quit)
(mu4e-view msg)))
(defun mu4e-view-toggle-show-mime-parts()
"Toggle whether to show all MIME-parts."