diff --git a/mu4e/mu4e-thread.el b/mu4e/mu4e-thread.el index 150e7e52..ba452cb2 100644 --- a/mu4e/mu4e-thread.el +++ b/mu4e/mu4e-thread.el @@ -220,7 +220,8 @@ Reset individual folding states." (interactive) (unless (eq (line-end-position) (point-max)) (let* ((thread-beg (mu4e-thread-root)) - (thread-end (or (mu4e-thread-next) (point-max))) + (thread-end (mu4e-thread-next)) + (thread-end (if thread-end (1- thread-end) (point-max))) (unread-count 0) (fold-beg (save-excursion (goto-char thread-beg)