<<< Date Index >>>     <<< Thread Index >>>

Re: current cvs version doesn't compile with slang support enabled



Hello,

> I saw the same thing on Solaris and Linux. I threw in the ncurses
> library libncurses.a and that resolved the unknowns on both platforms.
> Its a 'bug' somewhere.

the problem comes with one of the most recent changes to menu.c:

(faui03) [~/work/mutt/mutt] cvs diff -r3.10 -r3.11 menu.c
Index: menu.c
===================================================================
RCS file: /home/roessler/cvs/mutt/menu.c,v
retrieving revision 3.10
retrieving revision 3.11
diff -u -r3.10 -r3.11
--- menu.c      4 Oct 2003 20:34:59 -0000       3.10
+++ menu.c      4 Jan 2004 10:25:13 -0000       3.11
@@ -38,6 +38,7 @@
   size_t k;
   size_t n = mutt_strlen ((char *)s);
   mbstate_t mbstate;
+  short f1, f2, b1, b2;

   memset (&mbstate, 0, sizeof (mbstate));
   while (*s)
@@ -45,7 +46,12 @@
     if (*s < M_TREE_MAX)
     {
       if (do_color)
-       SETCOLOR (MT_COLOR_TREE);
+      {
+       pair_content(PAIR_NUMBER(ColorDefs[MT_COLOR_TREE]), &f1, &b1);
+       pair_content(PAIR_NUMBER(attr), &f2, &b2);
+       if (b1 == b2)
+         SETCOLOR (MT_COLOR_TREE);
+      }
       while (*s && *s < M_TREE_MAX)
       {
        switch (*s)

This breaks it.

        Thomas