diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/man/4/acme | 3 | ||||
-rw-r--r-- | sys/src/cmd/acme/xfid.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/man/4/acme b/sys/man/4/acme index a2e68ddf1..c91d01e2f 100644 --- a/sys/man/4/acme +++ b/sys/man/4/acme @@ -280,6 +280,9 @@ Equivalent to the .B Put interactive command with no arguments; accepts no arguments. .TP +.B scratch +Turn off tracking the `dirty' status, the window stays clean. +.TP .B scroll Cancel a .B noscroll diff --git a/sys/src/cmd/acme/xfid.c b/sys/src/cmd/acme/xfid.c index 2a8e17bdb..2feb438b2 100644 --- a/sys/src/cmd/acme/xfid.c +++ b/sys/src/cmd/acme/xfid.c @@ -759,6 +759,10 @@ out: if(strncmp(p, "scroll", 6) == 0){ /* turn on automatic scrolling (writes to body only) */ w->noscroll = FALSE; m = 6; + }else + if(strncmp(p, "scratch", 7) == 0){ /* mark as a scratch file */ + w->isscratch = TRUE; + m = 7; }else{ err = Ebadctl; break; |