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:
Dirk-Jan C. Binnema 2023-08-30 18:50:15 +03:00
parent 29f2f07070
commit 11b7e5748c
1 changed files with 2 additions and 2 deletions

View File

@ -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)