aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/xfid.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-03-07 10:41:50 -0500
committerRuss Cox <rsc@swtch.com>2008-03-07 10:41:50 -0500
commit7927fe8f9efb61c7bcdfc63997a4e785c97c53ef (patch)
tree5532d79aa575b079a15e737fb840f9afc2dc8a01 /src/cmd/acme/xfid.c
parentfdddf6f01849a37d70b15581cd3e9713476b40ec (diff)
downloadplan9port-7927fe8f9efb61c7bcdfc63997a4e785c97c53ef.tar.gz
plan9port-7927fe8f9efb61c7bcdfc63997a4e785c97c53ef.tar.bz2
plan9port-7927fe8f9efb61c7bcdfc63997a4e785c97c53ef.zip
acme: add nomenu, menu ctl messages
Diffstat (limited to 'src/cmd/acme/xfid.c')
-rw-r--r--src/cmd/acme/xfid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/acme/xfid.c b/src/cmd/acme/xfid.c
index 65ae2d99..db5d54b0 100644
--- a/src/cmd/acme/xfid.c
+++ b/src/cmd/acme/xfid.c
@@ -760,6 +760,14 @@ out:
settag = TRUE;
m = 4;
}else
+ if(strncmp(p, "nomenu", 6) == 0){ /* turn off automatic menu */
+ w->filemenu = FALSE;
+ m = 6;
+ }else
+ if(strncmp(p, "menu", 4) == 0){ /* enable automatic menu */
+ w->filemenu = TRUE;
+ m = 4;
+ }else
if(strncmp(p, "noscroll", 8) == 0){ /* turn off automatic scrolling */
w->noscroll = TRUE;
m = 8;