patch 8.0.0452: some macros are in lower case
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index f107ee7..c270dc8 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2013,7 +2013,7 @@
if (save_msg_silent == -1)
save_msg_silent = msg_silent;
++msg_silent;
- if (*ea.cmd == '!' && !vim_iswhite(ea.cmd[-1]))
+ if (*ea.cmd == '!' && !VIM_ISWHITE(ea.cmd[-1]))
{
/* ":silent!", but not "silent !cmd" */
ea.cmd = skipwhite(ea.cmd + 1);
@@ -2771,7 +2771,7 @@
*/
if ((ea.argt & COUNT) && VIM_ISDIGIT(*ea.arg)
&& (!(ea.argt & BUFNAME) || *(p = skipdigits(ea.arg)) == NUL
- || vim_iswhite(*p)))
+ || VIM_ISWHITE(*p)))
{
n = getdigits(&ea.arg);
ea.arg = skipwhite(ea.arg);
@@ -2939,7 +2939,7 @@
else
{
p = ea.arg + STRLEN(ea.arg);
- while (p > ea.arg && vim_iswhite(p[-1]))
+ while (p > ea.arg && VIM_ISWHITE(p[-1]))
--p;
}
ea.line2 = buflist_findpat(ea.arg, p, (ea.argt & BUFUNL) != 0,
@@ -3757,7 +3757,7 @@
}
/* An argument can contain just about everything, except
* characters that end the command and white space. */
- else if (c == '|' || c == '\n' || c == '"' || (vim_iswhite(c)
+ else if (c == '|' || c == '\n' || c == '"' || (VIM_ISWHITE(c)
#ifdef SPACE_IN_FILENAME
&& (!(ea.argt & NOSPC) || usefilter)
#endif
@@ -5136,7 +5136,7 @@
/* skip escaped characters */
if (p[1] && (*p == '\\' || *p == Ctrl_V))
++p;
- else if (vim_iswhite(*p))
+ else if (VIM_ISWHITE(*p))
{
*errormsgp = (char_u *)_("E172: Only one file name allowed");
return FAIL;
@@ -6336,7 +6336,7 @@
if (ASCII_ISALPHA(*p))
while (ASCII_ISALNUM(*p))
++p;
- if (!ends_excmd(*p) && !vim_iswhite(*p))
+ if (!ends_excmd(*p) && !VIM_ISWHITE(*p))
{
EMSG(_("E182: Invalid command name"));
return;
@@ -6464,7 +6464,7 @@
len += 2;
p += 2;
}
- else if (p[0] == '\\' && vim_iswhite(p[1]))
+ else if (p[0] == '\\' && VIM_ISWHITE(p[1]))
{
len += 1;
p += 2;
@@ -6474,7 +6474,7 @@
len += 2;
p += 1;
}
- else if (vim_iswhite(*p))
+ else if (VIM_ISWHITE(*p))
{
p = skipwhite(p);
if (*p == NUL)
@@ -6512,7 +6512,7 @@
*q++ = '\\';
p += 2;
}
- else if (p[0] == '\\' && vim_iswhite(p[1]))
+ else if (p[0] == '\\' && VIM_ISWHITE(p[1]))
{
*q++ = p[1];
p += 2;
@@ -6522,7 +6522,7 @@
*q++ = '\\';
*q++ = *p++;
}
- else if (vim_iswhite(*p))
+ else if (VIM_ISWHITE(*p))
{
p = skipwhite(p);
if (*p == NUL)
@@ -7078,7 +7078,7 @@
{
char_u *err = value;
- for (i = 0; err[i] != NUL && !vim_iswhite(err[i]); i++)
+ for (i = 0; err[i] != NUL && !VIM_ISWHITE(err[i]); i++)
;
err[i] = NUL;
EMSG2(_("E180: Invalid address type value: %s"), err);
@@ -12264,7 +12264,7 @@
if (ends_excmd(*eap->arg))
end = eap->arg;
else if ((STRNICMP(eap->arg, "none", 4) == 0
- && (vim_iswhite(eap->arg[4]) || ends_excmd(eap->arg[4]))))
+ && (VIM_ISWHITE(eap->arg[4]) || ends_excmd(eap->arg[4]))))
end = eap->arg + 4;
else
{