acme: fix Load of acme with no windows
R=rsc CC=codebot http://codereview.appspot.com/161048
This commit is contained in:
parent
ba940ae61c
commit
63479cfb79
1 changed files with 2 additions and 2 deletions
|
|
@ -631,6 +631,8 @@ rowload(Row *row, char *file, int initing)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(;;){
|
for(;;){
|
||||||
|
if(l == nil)
|
||||||
|
break;
|
||||||
dumpid = 0;
|
dumpid = 0;
|
||||||
switch(l[0]){
|
switch(l[0]){
|
||||||
case 'e':
|
case 'e':
|
||||||
|
|
@ -775,8 +777,6 @@ rowload(Row *row, char *file, int initing)
|
||||||
w->maxlines = min(w->body.fr.nlines, max(w->maxlines, w->body.fr.maxlines));
|
w->maxlines = min(w->body.fr.nlines, max(w->maxlines, w->body.fr.maxlines));
|
||||||
Nextline:
|
Nextline:
|
||||||
l = rdline(b, &line);
|
l = rdline(b, &line);
|
||||||
if(l == nil)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
Bterm(b);
|
Bterm(b);
|
||||||
fbuffree(buf);
|
fbuffree(buf);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue