Commit Diff


commit - 8423a43814aa8549e9fe2bd1f50ba3eecdf3032c
commit + 258cfab2fe5a816f23723f696c53ad6e61f6b501
blob - 813fd19b181d666cd6a055304ee72a21ec9eec60
blob + 8d1361101ce411fb1c0b91bfe688b8d9114f1f20
--- src/cmd/acme/look.c
+++ src/cmd/acme/look.c
@@ -255,10 +255,10 @@ plumblook(Plumbmsg *m)
 		e.u.ar = bytetorune(addr, &e.a1);
 		e.agetc = plumbgetc;
 	}
+	drawtopwindow();
 	openfile(nil, &e);
 	free(e.name);
 	free(e.u.at);
-	drawtopwindow();
 }
 
 void
@@ -270,6 +270,7 @@ plumbshow(Plumbmsg *m)
 	Runestr rs;
 	char *name, *p, namebuf[16];
 
+	drawtopwindow();
 	w = makenewwindow(nil);
 	name = plumblookup(m->attr, "filename");
 	if(name == nil){
@@ -297,7 +298,6 @@ plumbshow(Plumbmsg *m)
 	winsettag(w);
 	textscrdraw(&w->body);
 	textsetselect(&w->tag, w->tag.file->b.nc, w->tag.file->b.nc);
-	drawtopwindow();
 }
 
 int