acme: allow :6 in 5-line file
R=rsc https://codereview.appspot.com/12162043
This commit is contained in:
parent
d74fdb6edb
commit
2bc9a13faf
1 changed files with 2 additions and 0 deletions
|
|
@ -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(textreadc(t, q1++) == '\n' || q1==t->file->b.nc)
|
||||||
if(--line > 0)
|
if(--line > 0)
|
||||||
q0 = q1;
|
q0 = q1;
|
||||||
|
if(line==1 && q1==t->file->b.nc) // 6 goes to end of 5-line file
|
||||||
|
break;
|
||||||
if(line > 0)
|
if(line > 0)
|
||||||
goto Rescue;
|
goto Rescue;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue