> In the attached patch I added this feature (which is a bit hacky as
> `weekstart`
> gets incremented and decremented constantly)

Thanks.

The last entry of your patch says:

@@ -1235,14 +1256,14 @@ highlight(char *dst, char *src, int len, int
*extralen)
                dst += len;
                /* highlight off. */
                memcpy(dst, term_se, strlen(term_se));
-               *extralen = strlen(term_so) + strlen(term_se);
+               *extralen += strlen(term_so) + strlen(term_se);
                return;
        }
 
        /*
         * Otherwise, print a _, backspace and the letter.
         */
-       *extralen = 0;
+       *extralen += 0;
        /* skip leading space. */
        src++;
        len--;

I wonder if there's a typo or what "*extralen += 0" is supposed to
accomplish?

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL

Reply via email to