diff options
author | Russ Cox <rsc@swtch.com> | 2013-07-31 09:15:30 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2013-07-31 09:15:30 -0400 |
commit | 2bc9a13faf0abcfa43cddc8c226b2f742b764c4a (patch) | |
tree | 3a636b87ec87855d5e6ca95d893471038fec8f61 /src/cmd | |
parent | d74fdb6edbedbb184de9a8230e156460cb609aa6 (diff) | |
download | plan9port-2bc9a13faf0abcfa43cddc8c226b2f742b764c4a.tar.gz plan9port-2bc9a13faf0abcfa43cddc8c226b2f742b764c4a.tar.bz2 plan9port-2bc9a13faf0abcfa43cddc8c226b2f742b764c4a.zip |
acme: allow :6 in 5-line file
R=rsc
https://codereview.appspot.com/12162043
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/acme/addr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/acme/addr.c b/src/cmd/acme/addr.c index e7843cde..f09688dc 100644 --- a/src/cmd/acme/addr.c +++ b/src/cmd/acme/addr.c @@ -77,6 +77,8 @@ number(uint showerr, Text *t, Range r, int line, int dir, int size, int *evalp) if(textreadc(t, q1++) == '\n' || q1==t->file->b.nc) if(--line > 0) q0 = q1; + if(line==1 && q1==t->file->b.nc) // 6 goes to end of 5-line file + break; if(line > 0) goto Rescue; break; |