mirror of
https://github.com/djcb/mu.git
synced 2024-06-29 07:51:04 +02:00
* mu4e-headers: kill the existing message view
This commit is contained in:
parent
e792c61f32
commit
79f1819160
|
@ -728,6 +728,10 @@ of `mu4e-split-view', and return a window for the message view."
|
||||||
(unless (buffer-live-p mu4e~headers-buffer)
|
(unless (buffer-live-p mu4e~headers-buffer)
|
||||||
(error "No headers buffer available"))
|
(error "No headers buffer available"))
|
||||||
(switch-to-buffer mu4e~headers-buffer)
|
(switch-to-buffer mu4e~headers-buffer)
|
||||||
|
;; kill the existing view win
|
||||||
|
(when (buffer-live-p mu4e~view-buffer)
|
||||||
|
(kill-buffer mu4e~view-buffer))
|
||||||
|
;; get a new view window
|
||||||
(setq mu4e~headers-view-win
|
(setq mu4e~headers-view-win
|
||||||
(cond
|
(cond
|
||||||
((eq mu4e-split-view 'horizontal) ;; split horizontally
|
((eq mu4e-split-view 'horizontal) ;; split horizontally
|
||||||
|
|
Loading…
Reference in New Issue
Block a user