mu4e: ensure header line is set in headers buffer

When a different buffer had focus when the found handler was run, the header
line might be set on the wrong one.

As seen in #2897.
This commit is contained in:
Dirk-Jan C. Binnema
2026-01-07 19:52:52 +02:00
committed by Seth Ladygo
parent 341585ad66
commit 92957df8c2

View File

@ -887,9 +887,9 @@ COUNT is the number of messages found."
(mu4e~headers-highlight (mu4e~headers-docid-at-point)))
;; maybe enable thread folding
(when mu4e-search-threads
(mu4e-thread-mode)))
;; might need updating
(setq header-line-format (mu4e~header-line-format)))
(mu4e-thread-mode))
;; might need updating
(setq header-line-format (mu4e~header-line-format))))
;; run-hooks
(run-hooks 'mu4e-headers-found-hook))