13 |
Other code needs this zero setting to work correctly without |
Other code needs this zero setting to work correctly without |
14 |
having to repeatedly test for this conflictual condition. |
having to repeatedly test for this conflictual condition. |
15 |
|
|
16 |
|
* tests/foad1.sh: Add tests combining -o, -n/-b/-H, and -i, |
17 |
|
since there are separate code paths for -i. Add tests combining |
18 |
|
-o, -n/-b/-H, and -3, since any context line specification |
19 |
|
should be ignored when combined with -o. |
20 |
|
* src/grep.c (print_line_head): New function, culled off the |
21 |
|
top content of prline(). Adds a guard against "lastnl" having |
22 |
|
already reached "lim", which can happen when if the function |
23 |
|
is called more than once per line. |
24 |
|
* src/grep.c (prline): Now calls print_line_head(), not only at |
25 |
|
the beginning to replace the moved code when -o is not |
26 |
|
specified, but also for each match when -o is specified (two |
27 |
|
code paths with this). Patch #3770, more or less. This makes |
28 |
|
all tests combining -o and -n/-b/-H pass, which they didn't |
29 |
|
before. Fixes bug #12727. |
30 |
|
|
31 |
2005-06-20 Charles Levert <charles_levert@gna.org> |
2005-06-20 Charles Levert <charles_levert@gna.org> |
32 |
|
|
33 |
* src/grep.c: Extensively document the SGR/EL-to-Right issue. |
* src/grep.c: Extensively document the SGR/EL-to-Right issue. |