From: Konstantin Sobolev <kos@supportwizard.com>
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 23 Mar 2006 10:01:00 +0000 (10:01 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 23 Mar 2006 10:01:00 +0000 (10:01 +0000)
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

VERSION.svn
pager.c

index 1797364..16331dd 100644 (file)
@@ -1 +1 @@
-790
+792
diff --git a/pager.c b/pager.c
index 9cc94a1..0ef2507 100644 (file)
--- 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] == ';')) {
         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])) {
         pos += 2;
       }
       else if (buf[pos] == '3' && isdigit (buf[pos + 1])) {