commit a5841359104e89fbfc77ea23676876e2a5aa0966 from: rsc date: Mon Mar 26 13:26:22 2007 UTC make :1-1 work (Arvindh Tamilmani) commit - c8f538425f4e92e1e438b9bd25cb08e250a93d5b commit + a5841359104e89fbfc77ea23676876e2a5aa0966 blob - 3869e39b356ab6f8b516c93ce6f21e01ef510172 blob + a3c04991f1a59a6dea6b99d658a6c25d6323f51f --- src/cmd/acme/addr.c +++ src/cmd/acme/addr.c @@ -98,7 +98,8 @@ number(uint showerr, Text *t, Range r, int line, int d } --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;