summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme/wind.c
diff options
context:
space:
mode:
authorRoger Peppe <rogpeppe@gmail.com>2021-10-19 17:08:45 +0100
committerGitHub <noreply@github.com>2021-10-19 12:08:45 -0400
commitd0d440860f2000a1560abb3f593cdc325fcead4c (patch)
treed4d192573662f8dd1eee657f7d116d42774cbe85 /src/cmd/acme/wind.c
parent7b0b2065faf449f820b092afb74cf0af2dae79a3 (diff)
downloadplan9port-d0d440860f2000a1560abb3f593cdc325fcead4c.tar.gz
plan9port-d0d440860f2000a1560abb3f593cdc325fcead4c.zip
src/cmd/acme: provide info on presense or absence of undo history (#528)
It's sometimes useful to know whether there's been editing activity in a window. This PR adds that information to the ctl file. Change-Id: I21a342ac636dd5c7701b3ed560e3526867329c2c
Diffstat (limited to 'src/cmd/acme/wind.c')
-rw-r--r--src/cmd/acme/wind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c
index 0cba5920..98c97368 100644
--- a/src/cmd/acme/wind.c
+++ b/src/cmd/acme/wind.c
@@ -689,8 +689,8 @@ winctlprint(Window *w, char *buf, int fonts)
sprint(buf, "%11d %11d %11d %11d %11d ", w->id, w->tag.file->b.nc,
w->body.file->b.nc, w->isdir, w->dirty);
if(fonts)
- return smprint("%s%11d %q %11d ", buf, Dx(w->body.fr.r),
- w->body.reffont->f->name, w->body.fr.maxtab);
+ return smprint("%s%11d %q %11d %11d %11d ", buf, Dx(w->body.fr.r),
+ w->body.reffont->f->name, w->body.fr.maxtab, seqof(w, 1) != 0, seqof(w, 0) != 0);
return buf;
}