mu4e/thread: don't eat next thread when folding

For #2478.
This commit is contained in:
Dirk-Jan C. Binnema 2023-05-02 22:48:11 +03:00
parent 5fde962a9e
commit c01ea37abf
1 changed files with 2 additions and 1 deletions

View File

@ -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)