From 0ace413f801fddc6ae7687a882b124b7ce6555fc Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 3 Aug 2023 23:39:18 +0300 Subject: [PATCH] mu4e-headers: don't auto-update header with message open Avoid removing a message that's potentially being looked at. Fixes #1055 Fixes #1981 --- mu4e/mu4e-headers.el | 1 + 1 file changed, 1 insertion(+) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index 038c0907..425760b6 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -1079,6 +1079,7 @@ some changes, `mu4e-headers-auto-update' is non-nil and there is no user-interaction ongoing." (when (and mu4e-headers-auto-update ;; must be set mu4e-index-update-status + (not (mu4e-get-view-buffer)) ;; not when viewing a message (not (zerop (plist-get mu4e-index-update-status :updated))) ;; NOTE: `mu4e-mark-marks-num' can return nil. Is that intended? (zerop (or (mu4e-mark-marks-num) 0)) ;; non active marks