mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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{
|
||||
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 */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue