diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_keymap.c | 6 | ||||
-rw-r--r-- | Src/Zle/zle_main.c | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c index 3a06bb632..58e5e2175 100644 --- a/Src/Zle/zle_keymap.c +++ b/Src/Zle/zle_keymap.c @@ -656,11 +656,7 @@ bin_bindkey(char *name, char **argv, Options ops, int func) else if(OPT_ISSET(ops,'a')) kmname = "vicmd"; else if(OPT_ISSET(ops,'M')) { - kmname = *argv++; - if(!kmname) { - zwarnnam(name, "-M option requires a keymap argument", NULL, 0); - return 1; - } + kmname = OPT_ARG(ops,'M'); } else kmname = "main"; km = openkeymap(kmname); diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 8daf60085..047aa3d12 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -1336,7 +1336,7 @@ zleaftertrap(Hookdef dummy, void *dat) } static struct builtin bintab[] = { - BUILTIN("bindkey", 0, bin_bindkey, 0, -1, 0, "evaMldDANmrsLRp", NULL), + BUILTIN("bindkey", 0, bin_bindkey, 0, -1, 0, "evaM:ldDANmrsLRp", NULL), BUILTIN("vared", 0, bin_vared, 1, 7, 0, NULL, NULL), BUILTIN("zle", 0, bin_zle, 0, -1, 0, "aAcCDFgGIKlLmMNRU", NULL), }; |