]> granicus.if.org Git - neomutt/commitdiff
reword 'not enough arguments'
authorRichard Russon <rich@flatcap.org>
Tue, 1 May 2018 21:52:57 +0000 (22:52 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 3 May 2018 12:47:16 +0000 (13:47 +0100)
Use the more common 'too few arguments' string

init.c

diff --git a/init.c b/init.c
index 4485ce52e0cde2ff192e1c75a0614a9c3551838e..784eac37a1af6aa0949881e78347af4f63125ab2 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1045,7 +1045,7 @@ static int parse_echo(struct Buffer *buf, struct Buffer *s, unsigned long data,
 {
   if (!MoreArgs(s))
   {
-    mutt_str_strfcpy(err->data, _("not enough arguments"), err->dsize);
+    mutt_buffer_printf(err, _("%s: too few arguments"), "echo");
     return -1;
   }
   mutt_extract_token(buf, s, 0);
@@ -1128,7 +1128,7 @@ static int parse_replace_list(struct Buffer *buf, struct Buffer *s,
   /* First token is a regex. */
   if (!MoreArgs(s))
   {
-    mutt_str_strfcpy(err->data, _("not enough arguments"), err->dsize);
+    mutt_buffer_printf(err, _("%s: too few arguments"), "subjectrx");
     return -1;
   }
   mutt_extract_token(buf, s, 0);
@@ -1136,7 +1136,7 @@ static int parse_replace_list(struct Buffer *buf, struct Buffer *s,
   /* Second token is a replacement template */
   if (!MoreArgs(s))
   {
-    mutt_str_strfcpy(err->data, _("not enough arguments"), err->dsize);
+    mutt_buffer_printf(err, _("%s: too few arguments"), "subjectrx");
     return -1;
   }
   mutt_extract_token(&templ, s, 0);
@@ -1159,7 +1159,7 @@ static int parse_unreplace_list(struct Buffer *buf, struct Buffer *s,
   /* First token is a regex. */
   if (!MoreArgs(s))
   {
-    mutt_str_strfcpy(err->data, _("not enough arguments"), err->dsize);
+    mutt_buffer_printf(err, _("%s: too few arguments"), "unsubjectrx");
     return -1;
   }