]> granicus.if.org Git - neomutt/commitdiff
command/function cosmetics from Byrial Jensen.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 11 Jun 2001 17:03:09 +0000 (17:03 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 11 Jun 2001 17:03:09 +0000 (17:03 +0000)
keymap.c

index 38226ba9200e187d0e6144108c6aa4716ab7ccf8..7b48e97ef8586e1437b31a8be00f9e2393d9e31e 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -837,45 +837,45 @@ int mutt_parse_macro (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
   return (r);
 }
 
-/* exec command-name */
+/* exec function-name */
 int mutt_parse_exec (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
 {
   int ops[128]; 
   int nops = 0;
   struct binding_t *bindings = NULL;
-  char *command;
-  
+  char *function;
+
   if (!MoreArgs (s))
   {
-    strfcpy (err->data, _("exec: too few arguments"), err->dsize);
+    strfcpy (err->data, _("exec: no arguments"), err->dsize);
     return (-1);
   }
 
   do
   {
     mutt_extract_token (buf, s, 0);
-    command = buf->data;
+    function = buf->data;
 
     if ((bindings = km_get_table (CurrentMenu)) == NULL 
        && CurrentMenu != MENU_PAGER)
       bindings = OpGeneric;
-    
-    ops[nops] = get_op (bindings, command, mutt_strlen(command));
+
+    ops[nops] = get_op (bindings, function, mutt_strlen(function));
     if (ops[nops] == OP_NULL && CurrentMenu != MENU_PAGER)
-      ops[nops] = get_op (OpGeneric, command, mutt_strlen(command));
-    
+      ops[nops] = get_op (OpGeneric, function, mutt_strlen(function));
+
     if (ops[nops] == OP_NULL)
     {
       mutt_flushinp ();
-      mutt_error (_("%s: no such command"), command);
+      mutt_error (_("%s: no such function"), function);
       return (-1);
     }
     nops++;
   }
   while(MoreArgs(s) && nops < sizeof(ops)/sizeof(ops[0]));
-  
+
   while(nops)
     mutt_ungetch(0, ops[--nops]);
-  
+
   return 0;
 }