diff options
-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; |