mirror of
https://github.com/djcb/mu.git
synced 2024-06-27 07:35:16 +02:00
* another fix for mu4e~headers-redraw-get-view-window
This commit is contained in:
parent
87ddafb37a
commit
560eb77f69
|
@ -630,8 +630,10 @@ update the query history stack."
|
||||||
of `mu4e-split-view', and return a window for the message view."
|
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"))
|
||||||
(while (> (count-windows) 2) ;; FIXME: why 2 and not 1?
|
(walk-windows
|
||||||
(delete-window))
|
(lambda (win)
|
||||||
|
(when (> (count-windows) 2)
|
||||||
|
(delete-window win))) nil nil)
|
||||||
(switch-to-buffer mu4e~headers-buffer)
|
(switch-to-buffer mu4e~headers-buffer)
|
||||||
(cond
|
(cond
|
||||||
((eq mu4e-split-view 'horizontal) ;; split horizontally
|
((eq mu4e-split-view 'horizontal) ;; split horizontally
|
||||||
|
|
Loading…
Reference in New Issue
Block a user