56 |
unused for now, intended to allow a simplifying rewrite of |
unused for now, intended to allow a simplifying rewrite of |
57 |
prline(). Adding them first will make for cleaner CVS patches. |
prline(). Adding them first will make for cleaner CVS patches. |
58 |
|
|
59 |
|
* src/grep.c (prline): Simplifying rewrite using |
60 |
|
print_line_middle() and print_line_tail(). No longer attempts |
61 |
|
to find matches to colorize in context lines, thus avoiding |
62 |
|
costly calls to (*execute)(), since we know by then that they |
63 |
|
can't contain any by definition. There are no longer four |
64 |
|
different code paths whether -o and -i are each specified |
65 |
|
or not; they have been unified into one, which should help |
66 |
|
avoid bugs similar to previous ones due to not updating all |
67 |
|
code paths in a synchronized fashion. The -i code has been |
68 |
|
explicitly marked since it doesn't belong there and should |
69 |
|
be removed as soon as other -i code elsewhere is fixed. |
70 |
|
The remaining GREP_COLORS functionality is implemented. |
71 |
|
Savannah patch #3771 and patch #3644, heavily reworked. |
72 |
|
|
73 |
2005-06-20 Charles Levert <charles_levert@gna.org> |
2005-06-20 Charles Levert <charles_levert@gna.org> |
74 |
|
|
75 |
* src/grep.c: Extensively document the SGR/EL-to-Right issue. |
* src/grep.c: Extensively document the SGR/EL-to-Right issue. |