-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 >> 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?
Oh, well spotted, I just replaced '*extralen =' by '*extralen +=' in that function. The main aspect is that I don't want to reset extralen to 0 as it holds the offset to make space for the 4 extra characters which print the week. Cheers, Paul -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYa8kHAAoJEPOmP9OjPXmr7IIP/jBgxDJt0fLkTkNI88lIVgws sRcfWJZQQu4cXMWdmcHqRs7USDg3Qk2I7J0YrTTifXLewQQ4HpND5+UZBTzdWVxV CAxcSjR1B6TleXpwySlssF0jBpFeNPxoX+5xAYOZ7Zm3l7GzDCrttpWjNJnAC8nm QNgmsXlb727oLctdK0Oo0GokXdza4qO7mcPUJ5GyBDe4z+b1ta+7iBf8fAgBKuMA 028/DdemKotaG5vtkPLAEAIlMedk8T7JLWYCC8MH6dku0MNgS2TJDFGLXZZm0cwF 2pl9gOUZJ3m8/qvGgyNVJq0EYjWJuDoEcy+8H0EJqZgnNIPtm3CnJz/qS7xqL8bk xIbTuu/3gDBupASNyuBTsMueVKudeExRuD1hO66+Wk0pc4lmkUwu1vu6OIOvhY3z 0jvOcEZWAiGOLf4Ii9MGsw3WFRaN0L28aF1OtndBaX9HHtxW0ZTW/8GEPvD3frlH rW89m59JvO7nfGn2/TKgK5cCZTZsdHJ0pHMX0PsP5Y72KTAtjdDUQKmzMTqja0qh ELlvfOhquOhdyjyqzHHy2cxgRDyUee8hPrJqgaOu9OTGavvxSZkSeKA1WKZ6N/u+ 85zKUFNRLH+f6+aHWzRdP0y6Nliev1yyjYi4WHJ9HpDugovTqZkejuRwzbW+rWUh o1UyVvfAlz8JECc+hHxq =t10k -----END PGP SIGNATURE-----

