mu4e-view-gnus: don't render in invisible buffer

It seems that prevents image resizing from working.

Should help for issue #1998.
This commit is contained in:
Dirk-Jan C. Binnema 2021-04-27 00:10:11 +03:00
parent 5103f4614e
commit 453c7f84e8
1 changed files with 4 additions and 4 deletions

View File

@ -56,10 +56,10 @@
(let ((inhibit-read-only t))
(erase-buffer)
(insert-file-contents-literally
(mu4e-message-field msg :path) nil nil nil t)
(setq mu4e~view-message msg)
(mu4e~view-render-buffer msg)))
(switch-to-buffer gnus-article-buffer))
(mu4e-message-field msg :path) nil nil nil t)))
(switch-to-buffer gnus-article-buffer)
(setq mu4e~view-message msg)
(mu4e~view-render-buffer msg))
(defun mu4e-view-message-text (msg)
"Return the pristine message as a string, for replying/forwarding