mirror of
https://github.com/neovim/neovim.git
synced 2025-12-21 13:55:36 +00:00
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:
@@ -97,7 +97,7 @@ ex_menu(exarg_T *eap)
|
||||
while (*arg != NUL && *arg != ' ') {
|
||||
if (*arg == '\\')
|
||||
STRMOVE(arg, arg + 1);
|
||||
mb_ptr_adv(arg);
|
||||
MB_PTR_ADV(arg);
|
||||
}
|
||||
if (*arg != NUL) {
|
||||
*arg++ = NUL;
|
||||
@@ -1099,7 +1099,7 @@ char_u *menu_name_skip(char_u *const name)
|
||||
{
|
||||
char_u *p;
|
||||
|
||||
for (p = name; *p && *p != '.'; mb_ptr_adv(p)) {
|
||||
for (p = name; *p && *p != '.'; MB_PTR_ADV(p)) {
|
||||
if (*p == '\\' || *p == Ctrl_V) {
|
||||
STRMOVE(p, p + 1);
|
||||
if (*p == NUL)
|
||||
@@ -1549,9 +1549,11 @@ static void menu_unescape_name(char_u *name)
|
||||
{
|
||||
char_u *p;
|
||||
|
||||
for (p = name; *p && *p != '.'; mb_ptr_adv(p))
|
||||
if (*p == '\\')
|
||||
for (p = name; *p && *p != '.'; MB_PTR_ADV(p)) {
|
||||
if (*p == '\\') {
|
||||
STRMOVE(p, p + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user