tacme: allow :?regexp for backward search - plan9port - [fork] Plan 9 from user… | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 67afaf385afa5a2bcc6b7640d7cec6cd5d17863e | |
parent ff4512ee906ba02533eb86442ce95862a443f1d2 | |
Author: Russ Cox <[email protected]> | |
Date: Sun, 10 Jul 2011 20:35:23 -0400 | |
acme: allow :?regexp for backward search | |
Fixes issue 80. | |
R=rsc | |
http://codereview.appspot.com/4662088 | |
Diffstat: | |
M src/cmd/acme/look.c | 4 ++++ | |
1 file changed, 4 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/cmd/acme/look.c b/src/cmd/acme/look.c | |
t@@ -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.a… | |
+ 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 addre… | |
} |