Hi tech --
Diff below adds the bounce matching for [] and {} in mg like it does for ().
I miss having that from GNU Emacs, anyone else?
OK?
~Brian
Index: keymap.c
===
RCS file: /cvs/src/usr.bin/mg/keymap.c,v
retrieving revision 1.51
diff -u -p -r1.51 keymap.c
--- keymap.c22 May 2013 19:23:45 -1.51
+++ keymap.c13 Aug 2014 22:49:08 -
@@ -388,16 +388,16 @@ static PF fund_del[] = {
};
static PF fund_cb[] = {
-showmatch/* ) */
+showmatch/* ) ] } */
};
#ifndefFUND_XMAPS
#define NFUND_XMAPS0/* extra map sections after normal ones */
#endif
-static struct KEYMAPE (6 + NFUND_XMAPS + IMAPEXT) fundmap = {
-6 + NFUND_XMAPS,
-6 + NFUND_XMAPS + IMAPEXT,
+static struct KEYMAPE (8 + NFUND_XMAPS + IMAPEXT) fundmap = {
+8 + NFUND_XMAPS,
+8 + NFUND_XMAPS + IMAPEXT,
selfinsert,
{
{
@@ -414,6 +414,12 @@ static struct KEYMAPE (6 + NFUND_XMAPS +
},
{
')', ')', fund_cb, NULL
+},
+{
+']', ']', fund_cb, NULL
+},
+{
+'}', '}', fund_cb, NULL
},
{
CCHR('?'), CCHR('?'), fund_del, NULL