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

Increase buffer for "color" cmd regexps



Moinsen,

recently I've hit the string size limit of "color body ...".
The problem is that the original long regexp is cut down to size
"STRING" which is 256, and then the regexp is syntactically incomplete.

I'm still investigating why I don't see err-msgs for that failure
when sourcing via folder-hook but only hear beeps when in certain
folders, while it reports those errors for spool when I source
manually.

However, unless it breaks something, it'd be nice to have more
space for the regexps.

------ QUOTE BEGIN ------
--- org/color.c Fri May 19 11:00:01 2006
+++ cvs-2/color.c       Sat Feb  3 14:26:45 2007
@@ -515,7 +515,7 @@
   else
   {
     int r;
-    char buf[STRING];
+    char buf[LONG_STRING];

     tmp = mutt_new_color_line ();
     if (is_index)
------- QUOTE END -------

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL of it: you get what you give.