lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Patch for S-Lang 2.0


From: Thomas Dickey
Subject: Re: [Lynx-dev] Patch for S-Lang 2.0
Date: Thu, 17 Feb 2005 19:33:57 -0500
User-agent: Mutt/1.5.6+20040907i

On Sat, Feb 12, 2005 at 08:47:16PM +0100, Gisle Vanem wrote:
> I only made it compile with S-Lang 2. It doesn't work thought; only the
> links are coloured correctly. The normal text is invisible (blue on blue).
> And the screen isn't cleared when e.g. going to the 'O'ption page.
> 
> I assume it's due to SLsmg_char_type is now a structure. I've not looked
> into this yet. So any pointers are welcome.

It's a bug in slang2.  Here's a suggested patch for it.

--- slsmg.c.orig        2005-02-07 01:03:28.000000000 -0500 
+++ slsmg.c     2005-02-17 19:26:19.000000000 -0500 
@@ -588,9 +588,7 @@ 
    SL_Screen[This_Row - Start_Row].flags = flags;
    This_Col = col;

-   if ((u >= umax) 
-       || (u == NULL) 
-       || (SLsmg_Newline_Behavior == 0)) 
+   if (SLsmg_Newline_Behavior == 0) 
      return;

    if (newline_flag == 0)
@@ -600,7 +598,7 @@ 
             if (*u == '\n') break;
             u++;
          }
-       if (u == umax) return; 
+       if (u >= umax) return; 
        u++;
      }



-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]