From bd40ffa7184acfe0845a0ee0ab21f67fdc136a45 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 26 Oct 2021 14:13:34 +0300 Subject: [PATCH] mu4e-headers: fix updated check (for auto-update) The check for # of updated messages was wrong; fix it. Fixes: #2163. --- mu4e/mu4e-headers.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index bf29bb33..b609555a 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -1116,11 +1116,11 @@ after the end of the search results." (defun mu4e~headers-maybe-auto-update () "Update the current headers buffer after indexing has brought -some changes, `mu4e-headers-auto-update' is non-nil and there -is no user-interaction ongoing." +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 - (> 0 (plist-get mu4e-index-update-status :updated)) + (not (zerop (plist-get mu4e-index-update-status :updated))) (zerop (mu4e-mark-marks-num)) ;; non active marks (not (active-minibuffer-window))) ;; no user input only ;; rerun search if there's a live window with search results;