summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-10-13 06:20:26 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-10-13 06:20:26 +0000
commit5090fc5d447c6b68a12d0d09a0a90ee0f8610d28 (patch)
tree3b7e123348573e5b6b59aa7cbdca9d5f41824da9 /usr.bin/mg
parent2e292086e6e3f851add4c223c4c31670d56110d4 (diff)
add the (emacs) toggle-readonly keybinding (C-x C-q).
Also, remove a silly non-emacsism.
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/cinfo.c5
-rw-r--r--usr.bin/mg/keymap.c4
2 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/mg/cinfo.c b/usr.bin/mg/cinfo.c
index 18c2a21bdf9..fd5a2cff421 100644
--- a/usr.bin/mg/cinfo.c
+++ b/usr.bin/mg/cinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cinfo.c,v 1.12 2005/06/14 18:14:40 kjell Exp $ */
+/* $OpenBSD: cinfo.c,v 1.13 2005/10/13 06:20:25 kjell Exp $ */
/* This file is in the public domain. */
@@ -106,9 +106,6 @@ keyname(char *cp, size_t len, int k)
case CCHR('I'):
np = "TAB";
break;
- case CCHR('J'):
- np = "LFD";
- break; /* yuck, but that's what GNU calls it */
case CCHR('M'):
np = "RET";
break;
diff --git a/usr.bin/mg/keymap.c b/usr.bin/mg/keymap.c
index 920618606f4..41a82b81d77 100644
--- a/usr.bin/mg/keymap.c
+++ b/usr.bin/mg/keymap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keymap.c,v 1.33 2005/10/13 05:47:45 kjell Exp $ */
+/* $OpenBSD: keymap.c,v 1.34 2005/10/13 06:20:25 kjell Exp $ */
/* This file is in the public domain. */
@@ -81,7 +81,7 @@ static PF cXcL[] = {
rescan, /* ^N */
deblank, /* ^O */
rescan, /* ^P */
- rescan, /* ^Q */
+ togglereadonly, /* ^Q */
filevisitro, /* ^R */
filesave, /* ^S */
rescan, /* ^T */