make :1-1 work (Arvindh Tamilmani)

This commit is contained in:
rsc 2007-03-26 13:26:22 +00:00
parent c8f538425f
commit a584135910

View file

@ -98,7 +98,8 @@ number(uint showerr, Text *t, Range r, int line, int dir, int size, int *evalp)
} }
--q0; --q0;
} }
if(line > 0) /* :1-1 is :0 = #0, but :1-2 is an error */
if(line > 1)
goto Rescue; goto Rescue;
while(q0>0 && textreadc(t, q0-1)!='\n') while(q0>0 && textreadc(t, q0-1)!='\n')
--q0; --q0;