From: Richard Russon Date: Mon, 19 Mar 2018 10:54:05 +0000 (+0000) Subject: drop testing code - resolve_types X-Git-Tag: neomutt-20180323~8^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b2529ebc0b8e0ab43708da4b08906ba91c8b732;p=neomutt drop testing code - resolve_types --- diff --git a/pager.c b/pager.c index 65c067811..f40273087 100644 --- a/pager.c +++ b/pager.c @@ -757,7 +757,7 @@ static void resolve_types(char *buf, char *raw, struct Line *line_info, int n, regmatch_t pmatch[1], smatch[1]; bool found; bool null_rx; - int offset, i; + int offset, i = 0; if (n == 0 || ISHEADER(line_info[n - 1].type)) { @@ -1019,16 +1019,6 @@ static void resolve_types(char *buf, char *raw, struct Line *line_info, int n, if (nl > 0) buf[nl] = '\n'; } - - if (line_info[n].type == MT_COLOR_MESSAGE_LOG) - { - line_info[n].chunks = 1; - line_info[n].syntax = mutt_mem_calloc(1, sizeof(struct Syntax)); - - (line_info[n].syntax)[i].color = MT_COLOR_ERROR; - (line_info[n].syntax)[i].first = 5; - (line_info[n].syntax)[i].last = 10; - } } static int is_ansi(unsigned char *buf)