fix q1 computation bug in expandfile(). only affects external programs
This commit is contained in:
parent
590c5b346f
commit
8057b1ce3f
1 changed files with 1 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ expandfile(Text *t, uint q0, uint q1, Expand *e)
|
||||||
q1 = colon;
|
q1 = colon;
|
||||||
if(colon<t->file->b.nc-1 && isaddrc(textreadc(t, colon+1))){
|
if(colon<t->file->b.nc-1 && isaddrc(textreadc(t, colon+1))){
|
||||||
q1 = colon+1;
|
q1 = colon+1;
|
||||||
while(q1<t->file->b.nc-1 && isaddrc(textreadc(t, q1)))
|
while(q1<t->file->b.nc && isaddrc(textreadc(t, q1)))
|
||||||
q1++;
|
q1++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -626,7 +626,6 @@ expand(Text *t, uint q0, uint q1, Expand *e)
|
||||||
|
|
||||||
if(expandfile(t, q0, q1, e))
|
if(expandfile(t, q0, q1, e))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if(q0 == q1){
|
if(q0 == q1){
|
||||||
while(q1<t->file->b.nc && isalnum(textreadc(t, q1)))
|
while(q1<t->file->b.nc && isalnum(textreadc(t, q1)))
|
||||||
q1++;
|
q1++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue