diff options
author | Russ Cox <rsc@swtch.com> | 2008-12-06 16:24:47 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-12-06 16:24:47 -0800 |
commit | cb53addfae455fd196e8b3fa7a3e3d1d65dca150 (patch) | |
tree | 66537fa483bc260210c981436cc101b3a96d2222 /src/cmd/acme | |
parent | d85332fc4368a809c23bf2949238d7c52f4c497b (diff) | |
download | plan9port-cb53addfae455fd196e8b3fa7a3e3d1d65dca150.tar.gz plan9port-cb53addfae455fd196e8b3fa7a3e3d1d65dca150.tar.bz2 plan9port-cb53addfae455fd196e8b3fa7a3e3d1d65dca150.zip |
acme: fix Load bug (Fazlul Shahriar)
Diffstat (limited to 'src/cmd/acme')
-rw-r--r-- | src/cmd/acme/rows.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/acme/rows.c b/src/cmd/acme/rows.c index 32ffeab9..ee41bfee 100644 --- a/src/cmd/acme/rows.c +++ b/src/cmd/acme/rows.c @@ -657,7 +657,7 @@ rowload(Row *row, char *file, int initing) memmove(t, l, Blinelen(b)); run(nil, t, r, nr, TRUE, nil, nil, FALSE); /* r is freed in run() */ - continue; + goto Nextline; case 'f': if(Blinelen(b) < 1+5*12+1) goto Rescue2; @@ -703,7 +703,7 @@ rowload(Row *row, char *file, int initing) else w = coladd(c, nil, lookid(dumpid, TRUE), y); if(w == nil) - continue; + goto Nextline; w->dumpid = j; l = rdline(b, &line); if(l == nil) @@ -769,6 +769,7 @@ rowload(Row *row, char *file, int initing) q0 = q1 = 0; textshow(&w->body, q0, q1, 1); w->maxlines = min(w->body.fr.nlines, max(w->maxlines, w->body.fr.maxlines)); +Nextline: l = rdline(b, &line); if(l == nil) break; |