(gnus-summary-articles-in-thread): Fix a bug that causes this function to return...
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Wed, 24 Nov 2010 20:23:47 +0000 (21:23 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Wed, 24 Nov 2010 20:23:47 +0000 (21:23 +0100)
lisp/ChangeLog
lisp/gnus-sum.el

index 2938a31..bb395c8 100644 (file)
@@ -1,3 +1,10 @@
+2010-11-24  Daniel Schoepe  <daniel.schoepe@googlemail.com>  (tiny change)
+
+       * gnus-sum.el (gnus-summary-articles-in-thread): Fix a bug that causes
+       this function to return incorrect results when calling it with an
+       explicit article argument different from
+       (gnus-summary-article-number).
+
 2010-11-24  Julien Danjou  <julien@danjou.info>
 
        * shr.el (shr-insert-color-overlay): Replace deprecated syntax.
index ff85d45..4e4fc5b 100644 (file)
@@ -11232,6 +11232,7 @@ with that article."
                  (mail-header-subject (gnus-data-header (car data)))))
                (t nil)))
         (end-point (save-excursion
+                     (goto-char (gnus-data-pos (car data)))
                      (if (gnus-summary-go-to-next-thread)
                          (point) (point-max))))
         articles)