tmake :1-1 work (Arvindh Tamilmani) - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a5841359104e89fbfc77ea23676876e2a5aa0966 | |
parent c8f538425f4e92e1e438b9bd25cb08e250a93d5b | |
Author: rsc | |
Date: Mon, 26 Mar 2007 13:26:22 +0000 make :1-1 work (Arvindh Tamilmani) Diffstat: M src/cmd/acme/addr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- | |
diff --git a/src/cmd/acme/addr.c b/src/cmd/acme/addr.c | |
t@@ -98,7 +98,8 @@ number(uint showerr, Text *t, Range r, int line, int dir, int size, int *evalp) } --q0; } - if(line > 0) + /* :1-1 is :0 = #0, but :1-2 is an error */ + if(line > 1) goto Rescue; while(q0>0 && textreadc(t, q0-1)!='\n') --q0; |