* mu4e: don't try to kill the headers window if it's the last one
This commit is contained in:
@ -1218,10 +1218,11 @@ to ensure we don't disturb other windows."
|
|||||||
(headers-visible))
|
(headers-visible))
|
||||||
(walk-windows
|
(walk-windows
|
||||||
(lambda (win)
|
(lambda (win)
|
||||||
|
(with-selected-window win
|
||||||
;; if we the view window connected to this one, kill it
|
;; if we the view window connected to this one, kill it
|
||||||
(when (eq mu4e~headers-view-win win)
|
(when (and (not (one-window-p win)) (eq mu4e~headers-view-win win))
|
||||||
(delete-window win)
|
(delete-window win)
|
||||||
(setq mu4e~headers-view-win nil))
|
(setq mu4e~headers-view-win nil)))
|
||||||
;; and kill any _other_ (non-selected) window that shows the current
|
;; and kill any _other_ (non-selected) window that shows the current
|
||||||
;; buffer
|
;; buffer
|
||||||
(when (and
|
(when (and
|
||||||
|
|||||||
Reference in New Issue
Block a user