acme: allow :?regexp for backward search

Fixes issue 80.

R=rsc
http://codereview.appspot.com/4662088
This commit is contained in:
Russ Cox 2011-07-10 20:35:23 -04:00
parent ff4512ee90
commit 67afaf385a

View file

@ -776,6 +776,10 @@ openfile(Text *t, Expand *e)
else{
eval = TRUE;
r = address(TRUE, t, range(-1,-1), range(t->q0, t->q1), e->u.at, e->a0, e->a1, e->agetc, &eval, &dummy);
if(r.q0 > r.q1) {
eval = FALSE;
warning(nil, "addresses out of order\n");
}
if(eval == FALSE)
e->jump = FALSE; /* don't jump if invalid address */
}