CVSROOT: /cvsroot/grep
Module name: grep
Branch:
Changes by: Charles Levert <[EMAIL PROTECTED]> 05/06/14 20:56:42
Modified files:
. : ChangeLog
src : grep.c
tests : fmbtest.sh foad1.sh
Log message:
Fix bug #11022 (Line wrapping causes GREP_COLOR background
color to "smear") by outputting a "clear to end of line"
control sequence after each SGR (Select Graphic Rendition)
control sequence (START and END). This also avoid similar
problems with HT (tab) characters.
* src/grep.c (SGR_START, SGR_END, PR_SGR_FMT, PR_SGR_FMT_IF,
PR_SGR_START, PR_SGR_END, PR_SGR_START_IF, PR_SGR_END_IF):
New macros.
* src/grep.c (prline): Use the new macros.
* tests/fmbtest.sh, tests/foad1.sh: Adjust the regression tests
to expect the new control sequences.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/grep/grep/ChangeLog.diff?tr1=1.246&tr2=1.247&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/grep/grep/src/grep.c.diff?tr1=1.98&tr2=1.99&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/grep/grep/tests/fmbtest.sh.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/grep/grep/tests/foad1.sh.diff?tr1=1.7&tr2=1.8&r1=text&r2=text