From: pdmef Date: Thu, 23 Mar 2006 10:01:00 +0000 (+0000) Subject: From: Konstantin Sobolev X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=103addea87100ee814eaad2a8cf7d944936ab582 From: Konstantin Sobolev Rocco Rutte: - don't ignore ANSI colors with $allow_ansi under some circumstances git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@792 e385b8ad-14ed-0310-8656-cc95a2468c6d --- diff --git a/VERSION.svn b/VERSION.svn index 1797364..16331dd 100644 --- a/VERSION.svn +++ b/VERSION.svn @@ -1 +1 @@ -790 +792 diff --git a/pager.c b/pager.c index 9cc94a1..0ef2507 100644 --- a/pager.c +++ b/pager.c @@ -853,12 +853,8 @@ static int grok_ansi (unsigned char *buf, int pos, ansi_attr * a) pos += 2; } else if (buf[pos] == '0' && (pos + 1 == x || buf[pos + 1] == ';')) { -#ifdef HAVE_COLOR - if (a->pair != -1) - mutt_free_color (a->fg, a->bg); -#endif - a->attr = ANSI_OFF; - a->pair = -1; + a->bg = -2; + a->fg = -2; pos += 2; } else if (buf[pos] == '3' && isdigit (buf[pos + 1])) {