dumb porting bugs
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index 5f087f5..b1e9e08 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -193,7 +193,7 @@
 
 	if(t->ncache!=0 || t->file->b.nc || t->w==nil || t!=&t->w->body || (t->w->isdir && t->file->nname==0))
 		error("text.load");
-	if(t->w->isdir && t->file.nname==0){
+	if(t->w->isdir && t->file->nname==0){
 		warning(nil, "empty directory name");
 		return 0;
 	}
@@ -652,7 +652,7 @@
 			if(t->w)
 				wincommit(t->w, t);
 			else
-				textcommit(t->w, TRUE);
+				textcommit(t, TRUE);
 			textshow(t, t->q0-1, t->q0-1, TRUE);
 		}
 		return;