forked from aniani/vim
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.
This commit is contained in:
@@ -2013,7 +2013,7 @@ do_one_cmd(
|
||||
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 @@ do_one_cmd(
|
||||
*/
|
||||
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 @@ do_one_cmd(
|
||||
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 @@ set_one_cmd_context(
|
||||
}
|
||||
/* 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 @@ expand_filename(
|
||||
/* 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 @@ ex_command(exarg_T *eap)
|
||||
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 @@ uc_split_args(char_u *arg, size_t *lenp)
|
||||
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 @@ uc_split_args(char_u *arg, size_t *lenp)
|
||||
len += 2;
|
||||
p += 1;
|
||||
}
|
||||
else if (vim_iswhite(*p))
|
||||
else if (VIM_ISWHITE(*p))
|
||||
{
|
||||
p = skipwhite(p);
|
||||
if (*p == NUL)
|
||||
@@ -6512,7 +6512,7 @@ uc_split_args(char_u *arg, size_t *lenp)
|
||||
*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 @@ uc_split_args(char_u *arg, size_t *lenp)
|
||||
*q++ = '\\';
|
||||
*q++ = *p++;
|
||||
}
|
||||
else if (vim_iswhite(*p))
|
||||
else if (VIM_ISWHITE(*p))
|
||||
{
|
||||
p = skipwhite(p);
|
||||
if (*p == NUL)
|
||||
@@ -7078,7 +7078,7 @@ parse_addr_type_arg(
|
||||
{
|
||||
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 @@ ex_match(exarg_T *eap)
|
||||
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user