mirror of https://github.com/djcb/mu.git
mu4e-headers: switch to buffer on current frame
We were possible showing the headers on _another_ frame, which is rather confusing. HT: Marcel van der Boom. Fixes #2545
This commit is contained in:
parent
29f2f07070
commit
11b7e5748c
|
@ -806,9 +806,9 @@ true, do *not* update the query history stack."
|
|||
(setq list-buffers-directory rewritten-expr)
|
||||
(mu4e--modeline-update))
|
||||
|
||||
;; when the buffer is already visible, select it; otherwise,
|
||||
;; when the buffer is already visible on the frame, select it; otherwise,
|
||||
;; switch to it.
|
||||
(unless (get-buffer-window buf 0)
|
||||
(unless (get-buffer-window buf)
|
||||
(mu4e-display-buffer buf t))
|
||||
(run-hook-with-args 'mu4e-search-hook expr)
|
||||
(mu4e~headers-clear mu4e~search-message)
|
||||
|
|
Loading…
Reference in New Issue