tacme: fix regexp match choice bug - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d694fe22b7818371af0368b5ae1623b640dd24e8
(DIR) parent 3a9401ae90d2a16c7a06328d397775ca5b46ffc0
(HTM) Author: Russ Cox <rsc@swtch.com>
Date: Wed, 30 Jan 2008 13:47:15 -0500
acme: fix regexp match choice bug
Diffstat:
M src/cmd/acme/regx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/acme/regx.c b/src/cmd/acme/regx.c
t@@ -667,7 +667,7 @@ rxexecute(Text *t, Rune *r, uint startp, uint eof, Rangeset *rp)
break;
case OR:
/* evaluate right choice later */
- if(addinst(tl, inst->u.right, &tlp->se))
+ if(addinst(tlp, inst->u.right, &tlp->se))
if(++ntl >= NLIST)
goto Overflow;
/* efficiency: advance and re-evaluate */