X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fcolor.c;h=a9ee64a705d00c48da6ff743debab27c35e4179c;hp=2f286f42abc081d3a5a4baf59bdc9680f1055162;hb=f3cbb9f51357972f6e74244494236a41dc4d84cd;hpb=05a3bbbe420e4afc76e0eea24ce32f859405dc4a diff --git a/lib-ui/color.c b/lib-ui/color.c index 2f286f4..a9ee64a 100644 --- a/lib-ui/color.c +++ b/lib-ui/color.c @@ -7,24 +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 -#include -#include -#include -#include -#include +#include #include "curses.h" +#include "pattern.h" #include "mutt.h" /* globals */ @@ -125,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); } @@ -249,8 +236,6 @@ int mutt_alloc_color (int fg, int bg) init_pair (i, fg, bg); - debug_print (1, ("Color pairs used so far: %d\n", UserColors)); - return (COLOR_PAIR (p->index)); } @@ -266,7 +251,6 @@ void mutt_free_color (int fg, int bg) return; UserColors--; - debug_print (1, ("Color pairs used so far: %d\n", UserColors)); if (p == ColorList) { ColorList = ColorList->next; @@ -418,7 +402,6 @@ _mutt_parse_uncolor (BUFFER * buf, BUFFER * s, unsigned long data __attribute__ if (!m_strcmp(buf->data, tmp->pattern)) { if (!do_cache) do_cache = 1; - debug_print (1, ("Freeing pattern \"%s\" from ColorIndexList\n", tmp->pattern)); if (last) last->next = tmp->next; else