acme: allow :?regexp for backward search
Fixes issue 80. R=rsc http://codereview.appspot.com/4662088
This commit is contained in:
parent
ff4512ee90
commit
67afaf385a
1 changed files with 4 additions and 0 deletions
|
|
@ -776,6 +776,10 @@ openfile(Text *t, Expand *e)
|
||||||
else{
|
else{
|
||||||
eval = TRUE;
|
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);
|
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)
|
if(eval == FALSE)
|
||||||
e->jump = FALSE; /* don't jump if invalid address */
|
e->jump = FALSE; /* don't jump if invalid address */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue