]> granicus.if.org Git - neomutt/commitdiff
drop testing code - resolve_types
authorRichard Russon <rich@flatcap.org>
Mon, 19 Mar 2018 10:54:05 +0000 (10:54 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 20 Mar 2018 01:01:45 +0000 (01:01 +0000)
pager.c

diff --git a/pager.c b/pager.c
index 65c067811d03203b2420ae6eb5d1173f874212e9..f402730877b87ce94bf49394384a3e27f2eb8e58 100644 (file)
--- 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)