summaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-16 21:51:00 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-16 21:51:00 +0000
commitea424166e2a53649eea8d8899fc9294ca023964c (patch)
treec35c0b8daf356f341979d346c440336bcd13c899 /src/message.c
parent78599adb5219f98053673ca27683f922a9ca338b (diff)
updated for version 7.0086
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c37
1 files changed, 2 insertions, 35 deletions
diff --git a/src/message.c b/src/message.c
index ff79649897..79dbc2e17b 100644
--- a/src/message.c
+++ b/src/message.c
@@ -657,40 +657,7 @@ emsg2(s, a1)
return emsg3(s, a1, NULL);
}
-/*
- * Print an error message with one or two "%s" and one or two string arguments.
- */
- int
-emsg3(s, a1, a2)
- char_u *s, *a1, *a2;
-{
- if ((emsg_off > 0 && vim_strchr(p_debug, 'm') == NULL)
-#ifdef FEAT_EVAL
- || emsg_skip > 0
-#endif
- )
- return TRUE; /* no error messages at the moment */
- vim_snprintf((char *)IObuff, IOSIZE, (char *)s, (char *)a1, (char *)a2);
- return emsg(IObuff);
-}
-
-/*
- * Print an error message with one "%ld" and one long int argument.
- */
- int
-emsgn(s, n)
- char_u *s;
- long n;
-{
- if ((emsg_off > 0 && vim_strchr(p_debug, 'm') == NULL)
-#ifdef FEAT_EVAL
- || emsg_skip > 0
-#endif
- )
- return TRUE; /* no error messages at the moment */
- vim_snprintf((char *)IObuff, IOSIZE, (char *)s, n);
- return emsg(IObuff);
-}
+/* emsg3() and emsgn() are in misc2.c to avoid warnings for the prototypes. */
void
emsg_invreg(name)
@@ -3965,7 +3932,7 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
/* zero padding as requested by the precision or by the minimal
* field width for numeric conversions required? */
- if (number_of_zeros_to_pad <= 0)
+ if (number_of_zeros_to_pad == 0)
{
/* will not copy first part of numeric right now, *
* force it to be copied later in its entirety */