diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-23 20:42:47 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-23 20:42:47 +0000 |
commit | 7dfcee309b4c122ce376fd222b257511eaf4b41d (patch) | |
tree | aa4a23bd92d5612a463b727c7205c48e2d862c36 | |
parent | 8a89bd425d9f56c4867e33e957f8e9658a4b69d6 (diff) |
Deal with another strangeness caused by the abuse of the
global ele variable.
-rw-r--r-- | usr.bin/mg/extend.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/mg/extend.c b/usr.bin/mg/extend.c index 17c9bc90d20..f6606d3b970 100644 --- a/usr.bin/mg/extend.c +++ b/usr.bin/mg/extend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: extend.c,v 1.8 2001/05/23 20:19:44 art Exp $ */ +/* $OpenBSD: extend.c,v 1.9 2001/05/23 20:42:46 art Exp $ */ /* * Extended (M-X) commands, rebinding, and startup file processing. @@ -410,6 +410,11 @@ bindkey(mapp, fname, keys, kcount) if (doscan(curmap, c = *keys++, &curmap) != NULL) { if (remap(curmap, c, NULL, (KEYMAP *)NULL) != TRUE) return FALSE; + /* + * XXX - Bizzarreness. remap creates an empty KEYMAP + * that the last key is supposed to point to. + */ + curmap = ele->k_prefmap; } } (VOID)doscan(curmap, c = *keys, NULL); |