From 55e1e3502718410d0e2bfcd80c2522e473e9f7b9 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 10 Oct 2001 12:07:19 +0000 Subject: [PATCH] Patch from #272 (from acli@mingpaoxpress.com). --- pager.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pager.c b/pager.c index 615a89a4..c570a1ed 100644 --- a/pager.c +++ b/pager.c @@ -918,6 +918,15 @@ static int grok_ansi(unsigned char *buf, int pos, ansi_attr *a) /* Character Attributes */ if (a != NULL && buf[x] == 'm') { + if (pos == x) + { +#ifdef HAVE_COLOR + if (a->pair != -1) + mutt_free_color (a->fg, a->bg); +#endif + a->attr = ANSI_OFF; + a->pair = -1; + } while (pos < x) { if (buf[pos] == '1' && (pos+1 == x || buf[pos+1] == ';')) -- 2.40.0