diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-13 21:58:40 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-13 21:58:40 -0500 |
commit | 6bddb06b710066a4086dbe77822d02cafecb935b (patch) | |
tree | cadba172bf8cb19406d1c33feb29cbf48a88a676 /src | |
parent | 81d992e35f12d53e6799d20c744ffb4e6a49787d (diff) | |
download | plan9port-6bddb06b710066a4086dbe77822d02cafecb935b.tar.gz plan9port-6bddb06b710066a4086dbe77822d02cafecb935b.tar.bz2 plan9port-6bddb06b710066a4086dbe77822d02cafecb935b.zip |
acme: one more place to use parsetag
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/acme/wind.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c index 5950ef0e..156835da 100644 --- a/src/cmd/acme/wind.c +++ b/src/cmd/acme/wind.c @@ -419,11 +419,7 @@ wincleartag(Window *w) /* w must be committed */ n = w->tag.file->b.nc; - r = runemalloc(n); - bufread(&w->tag.file->b, 0, r, n); - for(i=0; i<n; i++) - if(r[i]==' ' || r[i]=='\t') - break; + r = parsetag(w, &i); for(; i<n; i++) if(r[i] == '|') break; |