aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-13 21:58:40 -0500
committerRuss Cox <rsc@swtch.com>2020-01-13 21:58:40 -0500
commit6bddb06b710066a4086dbe77822d02cafecb935b (patch)
treecadba172bf8cb19406d1c33feb29cbf48a88a676 /src
parent81d992e35f12d53e6799d20c744ffb4e6a49787d (diff)
downloadplan9port-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.c6
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;