Fix background colour problems with --color output (RH bug #138913).

Obtained from:	Karsten Hopp via Fedora
This commit is contained in:
Tim J. Robbins 2005-05-14 05:26:48 +00:00
parent 7daa3570e4
commit 833d4d167b

View File

@ -674,6 +674,7 @@ prline (char const *beg, char const *lim, int sep)
fputs ("\33[00m", stdout);
beg = b + match_size;
}
fputs ("\33[K", stdout);
}
fwrite (beg, 1, lim - beg, stdout);
if (ferror (stdout))