mu4e: don't error out in mu4e-view-quit

Fixes #2487.
This commit is contained in:
Dirk-Jan C. Binnema 2023-05-10 23:49:10 +03:00
parent a31472f886
commit b81608a4f4
1 changed files with 2 additions and 1 deletions

View File

@ -868,7 +868,8 @@ This is useful for advising some Gnus-functionality that does not work in mu4e."
"Quit the mu4e-view buffer."
(interactive)
(if (memq mu4e-split-view '(horizontal vertical))
(kill-buffer-and-window)
(ignore-errors ;; try, don't error out.
(kill-buffer-and-window))
;; single-window case
(when mu4e-linked-headers-buffer ;; re-use mu4e-view-detach?
(with-current-buffer mu4e-linked-headers-buffer