diff options
author | rsc <devnull@localhost> | 2007-03-26 13:26:22 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-03-26 13:26:22 +0000 |
commit | a5841359104e89fbfc77ea23676876e2a5aa0966 (patch) | |
tree | eac73e81cb610cb62c0d47b4e018ec4da5647e8a /src/cmd/acme | |
parent | c8f538425f4e92e1e438b9bd25cb08e250a93d5b (diff) | |
download | plan9port-a5841359104e89fbfc77ea23676876e2a5aa0966.tar.gz plan9port-a5841359104e89fbfc77ea23676876e2a5aa0966.tar.bz2 plan9port-a5841359104e89fbfc77ea23676876e2a5aa0966.zip |
make :1-1 work (Arvindh Tamilmani)
Diffstat (limited to 'src/cmd/acme')
-rw-r--r-- | src/cmd/acme/addr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/acme/addr.c b/src/cmd/acme/addr.c index 3869e39b..a3c04991 100644 --- a/src/cmd/acme/addr.c +++ b/src/cmd/acme/addr.c @@ -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; |