tacme: fix Load bug (Fazlul Shahriar) - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit cb53addfae455fd196e8b3fa7a3e3d1d65dca150
parent d85332fc4368a809c23bf2949238d7c52f4c497b
Author: Russ Cox 
Date:   Sat,  6 Dec 2008 16:24:47 -0800

acme: fix Load bug (Fazlul Shahriar)

Diffstat:
  M src/cmd/acme/rows.c                 |       5 +++--

1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/cmd/acme/rows.c b/src/cmd/acme/rows.c
t@@ -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;
t@@ -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)
t@@ -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;