Do not duplicate headers views in iconified/hidden frames

When the frame running mu4e is in another virtual desktop or iconified, but
still contains a visible headers buffer, do not attempt to create a new view.
This commit is contained in:
Yuri D'Elia 2017-02-20 18:40:20 +01:00
parent ea40939810
commit 34ed757e11
1 changed files with 1 additions and 1 deletions

View File

@ -1101,7 +1101,7 @@ the query history stack."
(mu4e-context-label)))))
;; when the buffer is already visible, select it; otherwise,
;; switch to it.
(unless (get-buffer-window buf 'visible)
(unless (get-buffer-window buf 0)
(switch-to-buffer buf))
(run-hook-with-args 'mu4e-headers-search-hook expr)
(mu4e~proc-find