Ensure the linked headers buffer state is not lost

This commit is contained in:
Mickey Petersen
2022-12-03 15:12:31 +00:00
parent d0ae875527
commit d43c0030e3
2 changed files with 29 additions and 17 deletions

View File

@ -1611,7 +1611,7 @@ _not_ refresh the last search with the new setting for threading."
(if (functionp mu4e-view-auto-mark-as-read)
(funcall mu4e-view-auto-mark-as-read msg)
mu4e-view-auto-mark-as-read)))
(when-let ((buf (mu4e-get-view-buffer nil nil)))
(when-let ((buf (mu4e-get-view-buffer (current-buffer) nil)))
(with-current-buffer buf
(mu4e-loading-mode 1)))
(mu4e--server-view docid mark-as-read)))