From: Thomas Roessler Date: Tue, 6 Oct 1998 15:10:53 +0000 (+0000) Subject: Macro function fixes. X-Git-Tag: mutt-0-94-13-rel~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d5beb27d29c561b30b16e9b1aa351cc5684bee1;p=mutt Macro function fixes. --- diff --git a/keymap.c b/keymap.c index 8fc8e25b..63cf4e3d 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]);