🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4492

Re: TRN thread following / changing code has changed in 3.0

#4492
From: Wayne Davison
Date: Sun, 13 Jun 1993 18:57
38 lines
2093 bytes
In <1vffdj$bkf@genesis.mcs.com> Karl Denninger <karl@genesis.MCS.COM> wrote:
> I have a complaint from one of my users, and was wondering if anyone had
> ideas.

I wrote the code -- feel free to ask me.  :-)

> It seems as though "trn" doesn't reliably go to the next thread if you're in
> an article and hit ">".

This is a simple problem that I'm surprised I didn't notice before.  The
following patch fixes it and will appear in the next release.

.wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index:rthread.c
@@ -1008,8 +1008,9 @@
     register SUBJECT *sp;
     register ARTICLE *ap;
+    int subj_mask = (sel_mode == SM_THREAD? (SF_THREAD|SF_VISIT) : SF_VISIT);
 
     sp = ((ap = artp) ? ap->subj->next : first_subject);
     for (; sp; sp = sp->next) {
-	if (sp->flags & SF_VISIT) {
+	if ((sp->flags & subj_mask) == subj_mask) {
 	    if ((ap = subj_art(sp)) != Nullart) {
 		art = article_num(ap);
@@ -1033,8 +1034,9 @@
     register SUBJECT *sp;
     register ARTICLE *ap;
+    int subj_mask = (sel_mode == SM_THREAD? (SF_THREAD|SF_VISIT) : SF_VISIT);
 
     sp = ((ap = artp) ? ap->subj->prev : last_subject);
     for (; sp; sp = sp->prev) {
-	if (sp->flags & SF_VISIT) {
+	if ((sp->flags & subj_mask) == subj_mask) {
 	    if ((ap = subj_art(sp)) != Nullart) {
 		art = article_num(ap);
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Technical Details
Message-ID: <C8Kq0K.Krp@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
References: <1vffdj$bkf@genesis.mcs.com>

Show Full Headers
Complete Article Headers
Message-ID: <C8Kq0K.Krp@borland.com>
Subject: Re: TRN thread following / changing code has changed in 3.0
Date: Sun, 13 Jun 1993 18:57:56 GMT
From: davison@borland.com (Wayne Davison)
References: <1vffdj$bkf@genesis.mcs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Lines: 38