mu4e-main: make main-window full-screen again

Make the main-window fullscreen again, as before.
This commit is contained in:
Dirk-Jan C. Binnema 2022-12-13 09:36:42 +02:00
parent de8b4f0e32
commit 7d9a9d8a7c
1 changed files with 4 additions and 0 deletions

View File

@ -375,7 +375,11 @@ When REFRESH is non nil refresh infos from server."
;; `mu4e--main-view' is called from `mu4e--start', so don't call it
;; a second time here i.e. do not refresh unless specified
;; explicitly with REFRESH arg.
(mu4e-display-buffer buf t)
;; undo some of the mu4e-display-buffer magic; we want a full screen.
;; perhaps we could use display-buffer-alist instead?
(delete-other-windows)
(with-current-buffer buf
(mu4e--main-view-real-1 refresh))
(goto-char (point-min))))