Set mu4e-headers-view-win to nil when closing message view.

This commit is contained in:
Titus von der Malsburg 2013-03-17 20:37:44 +01:00
parent 203aeb3093
commit 9b2b57fbb7
1 changed files with 2 additions and 0 deletions

View File

@ -1214,10 +1214,12 @@ other windows."
;; headers are visible
(progn
(kill-buffer-and-window) ;; kill the view win
(setq mu4e~headers-view-win nil)
(select-window headers-win)) ;; and switch to the headers win...
;; headers are not visible...
(progn
(kill-buffer)
(setq mu4e~headers-view-win nil)
(when (buffer-live-p mu4e~view-headers-buffer)
(switch-to-buffer mu4e~view-headers-buffer))))))