From 2341432a1bf11af2e9583c7d98fcd49dbdc97337 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 6 Oct 1998 15:10:53 +0000 Subject: [PATCH] Macro function fixes. --- keymap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/keymap.c b/keymap.c index 8fc8e25ba..63cf4e3d4 100644 --- a/keymap.c +++ b/keymap.c @@ -352,10 +352,10 @@ int km_dokey (int menu) if ((func = get_func (bindings, tmp.op))) return tmp.op; - if (menu == MENU_EDITOR) + if (menu == MENU_EDITOR && get_func (OpEditor, tmp.op)) return tmp.op; - if (CurrentMenu != MENU_PAGER) + if (menu != MENU_EDITOR && CurrentMenu != MENU_PAGER) { /* check generic menu */ bindings = OpGeneric; @@ -823,8 +823,9 @@ int mutt_parse_exec (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) mutt_error (_("%s: no such command"), command); return (-1); } + nops++; } - while(MoreArgs(s) && ++nops < sizeof(ops)/sizeof(ops[0])); + while(MoreArgs(s) && nops < sizeof(ops)/sizeof(ops[0])); while(nops) mutt_ungetch(0, ops[--nops]); -- 2.40.0