[PATCH] group.c + newsrc.c corrections
Dennis Preiser <[email protected]> Sat, 26 Sep 2009 14:13:19 +0200
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
attached patch fixes these issues:
- group.c:group_page(): An info_message() was immediately overwritten
by move_down() / draw_subject_arrow() (GROUP_SELECT_THREAD /
GROUP_TOGGLE_SELECT_THREAD).
- newsrc.c:group_get_art_info(): In case of !NNTP (reading from
spool) *art_min was initially set to 1. Later on we check if *art_min
== 0 (never TRUE), so art_min remains 1 and never got the article
number of the first article available.
Steps to trigger this:
Marking a group unread ('z') in selection level, quit and restart
tin. The article count for this group is wrong (1 - art_max instead
of art_min - art_max).
As I said before, this happens only when reading from spool.
Other changes:
One TODO in select.c:subscribe_pattern() removed because
grp_mark_unread() calls group_getart_info() as the TODO suggests.
Dennis
20090926.diff.gz
(application/x-gzip, 1 KB) - not displayed