mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
grep: import $ fix from plan 9
R=rsc http://codereview.appspot.com/4673053
This commit is contained in:
parent
29fba8562c
commit
ce5fdeb446
1 changed files with 8 additions and 2 deletions
|
@ -114,8 +114,14 @@ loop:
|
|||
break;
|
||||
|
||||
case Tend:
|
||||
if(c == '\n')
|
||||
matched = 1;
|
||||
if(c == '\n') {
|
||||
if(r->next == 0) {
|
||||
matched = 1;
|
||||
break;
|
||||
}
|
||||
r = r->next;
|
||||
goto loop;
|
||||
}
|
||||
break;
|
||||
|
||||
case Tclass:
|
||||
|
|
Loading…
Reference in a new issue