]> granicus.if.org Git - neomutt/commitdiff
Macro function fixes.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 6 Oct 1998 15:10:53 +0000 (15:10 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 6 Oct 1998 15:10:53 +0000 (15:10 +0000)
keymap.c

index 8fc8e25ba8d4c00df3fbd43dfb1623c5fb7c2ac6..63cf4e3d45673879f2b64ddee6b9c4f7e1df8441 100644 (file)
--- 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]);