🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by J. Porter Clark Sun, 19 Jan 1992 02:36
SUMMARY + FIX: Lines = -1 instead of ? in Layout 2
#2361
Author: J. Porter Clark
Date: Sun, 19 Jan 1992 02:36
49 lines
2341 bytes
On 8 Jan 1992 I posted this:

>Am I the only one with this problem?  Shift to layout 2 in selection
>mode (hit " until you get there) and see what happens to articles with
>no "Lines:" headers.  I get "-1" for the number of lines instead of
>"?".  Annoying, not fatal.

There's a one-line fix that will make this go away.
kaminski@netcom.netcom.com (Peter Kaminski) pointed out the offending
line; it was a snap to fix.  I've provided a patch below.  I'm using
the unofficial "patchlevel 18" but it will probably work on 16 as
well.

thomasm@mechti.ruhr.de (Thomas Mechtersheimer) sent me a patch which
eliminates the source of the problem somehow.  This is his description
of that patch:

>Here is the patch to news.c (to nn 6.4 PL 16) to count the lines if there is
>no Lines:-Header. And some changes to menu.c that remove some problems with
>highlighting with merged-subject menus.

I didn't include his patch with this humble offering.  I haven't had a
chance to test it, either.  My menu.c is so heavily hacked that 4 out
of 16 hunks (I think it was) failed, and I haven't had the time to sort
it all out.  Thanks anyway, Thomas.
================================================================

*** menu.c.18	Sat Jan 18 19:41:11 1992
--- menu.c	Sat Jan 18 20:04:38 1992
***************
*** 363,369 ****
  
       case 2:
  	lsubj -= 6;
! 	so_printf("%5d ", ah->lines);
  	break;
  
       case 3:
--- 363,369 ----
  
       case 2:
  	lsubj -= 6;
! 	so_printf(ah->lines >=0 ? "%5d " : "    ? ", ah->lines);
  	break;
  
       case 3:
--
J. Porter Clark    jpc@avdms8.msfc.nasa.gov or jpc@eb23.msfc.nasa.gov
NASA/MSFC Communications Systems Branch
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads