vim-patch:8.0.0451: some macros are in lower case

Problem:    Some macros are in lower case.
Solution:   Make a few more macros upper case. Avoid lower case macros use an
            argument twice.
91acfffc1e
This commit is contained in:
Jan Edmund Lazo
2018-06-11 23:43:14 -04:00
parent fa2ad305e3
commit 3c7ea8d619
33 changed files with 426 additions and 342 deletions

View File

@@ -2872,7 +2872,7 @@ const char * set_one_cmd_context(
return NULL; /* It's a comment */
}
}
mb_ptr_adv(p);
MB_PTR_ADV(p);
}
}
@@ -2890,9 +2890,10 @@ const char * set_one_cmd_context(
// Argument starts after a space.
xp->xp_pattern = (char_u *)++p;
} else {
if (*p == '\\' && *(p + 1) != NUL)
++p; /* skip over escaped character */
mb_ptr_adv(p);
if (*p == '\\' && *(p + 1) != NUL) {
p++; // skip over escaped character
}
MB_PTR_ADV(p);
}
}
@@ -2943,7 +2944,7 @@ const char * set_one_cmd_context(
} else {
len = 1;
}
mb_ptr_adv(p);
MB_PTR_ADV(p);
}
if (in_quote) {
bow = p;
@@ -2952,7 +2953,7 @@ const char * set_one_cmd_context(
}
p -= len;
}
mb_ptr_adv(p);
MB_PTR_ADV(p);
}
/*
@@ -3336,12 +3337,13 @@ const char * set_one_cmd_context(
// Find start of last argument.
p = arg;
while (*p) {
if (*p == ' ')
/* argument starts after a space */
if (*p == ' ') {
// argument starts after a space
arg = p + 1;
else if (*p == '\\' && *(p + 1) != NUL)
++p; /* skip over escaped character */
mb_ptr_adv(p);
} else if (*p == '\\' && *(p + 1) != NUL) {
p++; // skip over escaped character
}
MB_PTR_ADV(p);
}
xp->xp_pattern = (char_u *)arg;
}
@@ -4238,7 +4240,7 @@ void separate_nextcmd(exarg_T *eap)
p = skip_grep_pat(eap);
for (; *p; mb_ptr_adv(p)) {
for (; *p; MB_PTR_ADV(p)) {
if (*p == Ctrl_V) {
if (eap->argt & (USECTRLV | XFILE))
++p; /* skip CTRL-V and next char */
@@ -4322,7 +4324,7 @@ skip_cmd_arg (
else
++p;
}
mb_ptr_adv(p);
MB_PTR_ADV(p);
}
return p;
}
@@ -9486,10 +9488,12 @@ static int ses_put_fname(FILE *fd, char_u *name, unsigned *flagp)
char_u *sname = home_replace_save(NULL, name);
if (*flagp & SSOP_SLASH) {
/* change all backslashes to forward slashes */
for (p = sname; *p != NUL; mb_ptr_adv(p))
if (*p == '\\')
// change all backslashes to forward slashes
for (p = sname; *p != NUL; MB_PTR_ADV(p)) {
if (*p == '\\') {
*p = '/';
}
}
}
// Escape special characters.