aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/acme/exec.c')
-rw-r--r--src/cmd/acme/exec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c
index 882f7c31..a24e885d 100644
--- a/src/cmd/acme/exec.c
+++ b/src/cmd/acme/exec.c
@@ -556,9 +556,10 @@ get(Text *et, Text *t, Text *argt, int flag1, int _0, Rune *arg, int narg)
d = dirstat(name);
isdir = (d!=nil && (d->qid.type & QTDIR));
free(d);
- if(isdir)
+ if(isdir){
warning(nil, "%s is a directory; can't read with multiple windows on it\n", name);
- return;
+ return;
+ }
}
r = bytetorune(name, &n);
for(i=0; i<t->file->ntext; i++){