X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fcolor.c;h=afb84a58b227b7eb111d59d4ddc97daddab2bcd5;hb=33d7570d66fa131d801880a7786c8303cd867aaf;hp=ff90ff1eb3f41918bf2e7a32da4c66852c89a5ab;hpb=230399f9632c37b66c1c117a17e8327eae6b3235;p=apps%2Fmadmutt.git diff --git a/lib-ui/color.c b/lib-ui/color.c index ff90ff1..afb84a5 100644 --- a/lib-ui/color.c +++ b/lib-ui/color.c @@ -7,18 +7,11 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include - #include #include "curses.h" +#include "pattern.h" #include "mutt.h" /* globals */ @@ -119,7 +112,7 @@ static void mutt_free_color_line (COLOR_LINE ** l, int free_colors) */ regfree (&tmp->rx); - mutt_pattern_free (&tmp->color_pattern); + pattern_list_wipe(&tmp->color_pattern); p_delete(&tmp->pattern); p_delete(l); } @@ -190,7 +183,7 @@ int mutt_alloc_color (int fg, int bg) int i; #if defined (USE_SLANG_CURSES) - char fgc[SHORT_STRING], bgc[SHORT_STRING]; + char fgc[STRING], bgc[STRING]; #endif /* check to see if this color is already allocated to save space */