acme: fix regexp match choice bug

This commit is contained in:
Russ Cox 2008-01-30 13:47:15 -05:00
parent 3a9401ae90
commit d694fe22b7

View file

@ -667,7 +667,7 @@ rxexecute(Text *t, Rune *r, uint startp, uint eof, Rangeset *rp)
break; break;
case OR: case OR:
/* evaluate right choice later */ /* evaluate right choice later */
if(addinst(tl, inst->u.right, &tlp->se)) if(addinst(tlp, inst->u.right, &tlp->se))
if(++ntl >= NLIST) if(++ntl >= NLIST)
goto Overflow; goto Overflow;
/* efficiency: advance and re-evaluate */ /* efficiency: advance and re-evaluate */