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
This commit is contained in:
parent
7b0b2065fa
commit
d0d440860f
3 changed files with 8 additions and 5 deletions
|
|
@ -25,6 +25,8 @@ void savemouse(Window*);
|
|||
int restoremouse(Window*);
|
||||
void clearmouse(void);
|
||||
void allwindows(void(*)(Window*, void*), void*);
|
||||
uint seqof(Window*, int);
|
||||
|
||||
uint loadfile(int, uint, int*, int(*)(void*, uint, Rune*, int), void*, DigestState*);
|
||||
void movetodel(Window*);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue