[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 50b446a 2/2: Fix gnus-summary-catchup-from-here edge case
From: |
Lars Ingebrigtsen |
Subject: |
master 50b446a 2/2: Fix gnus-summary-catchup-from-here edge case |
Date: |
Sat, 19 Sep 2020 10:49:49 -0400 (EDT) |
branch: master
commit 50b446a6b32166b15939d7285e35f70f1994b276
Author: Alex Bochannek <alex@bochannek.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix gnus-summary-catchup-from-here edge case
* lisp/gnus/gnus-sum.el (gnus-summary-catchup-from-here): Make the
command work in the final line in the buffer, too (bug#43496).
---
lisp/gnus/gnus-sum.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 2f0ea0c..8e27a94 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -11537,7 +11537,7 @@ If ALL is non-nil, also mark ticked and dormant
articles as read."
(gnus-save-hidden-threads
(let ((beg (point)))
;; We check that there are unread articles.
- (when (or all (gnus-summary-find-next))
+ (when (or all (gnus-summary-last-article-p) (gnus-summary-find-next))
(gnus-summary-catchup all t beg nil t)))))
(gnus-summary-position-point))