diff options
-rw-r--r-- | src/cmd/acme/look.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/acme/look.c b/src/cmd/acme/look.c index aec850b8..813fd19b 100644 --- a/src/cmd/acme/look.c +++ b/src/cmd/acme/look.c @@ -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 */ } |