summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-12 19:22:36 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-12 19:22:36 +0100
commit91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f (patch)
tree1923145c992a09b3adc06e40f02284ff0ef21bbd /src/menu.c
parent47ffb905f363571072faefbd417938e7ff351a9f (diff)
downloadvim-91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f.zip
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.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/menu.c b/src/menu.c
index 05a229b45..b1b4ec7d4 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -152,7 +152,7 @@ ex_menu(
{
if (*arg == '\\')
STRMOVE(arg, arg + 1);
- mb_ptr_adv(arg);
+ MB_PTR_ADV(arg);
}
if (*arg != NUL)
{
@@ -661,7 +661,7 @@ add_menu_path(
STRCPY(tearpath, menu_path);
idx = (int)(next_name - path_name - 1);
- for (s = tearpath; *s && s < tearpath + idx; mb_ptr_adv(s))
+ for (s = tearpath; *s && s < tearpath + idx; MB_PTR_ADV(s))
{
if ((*s == '\\' || *s == Ctrl_V) && s[1])
{
@@ -1472,7 +1472,7 @@ menu_name_skip(char_u *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)
{
@@ -2485,7 +2485,7 @@ menu_unescape_name(char_u *name)
{
char_u *p;
- for (p = name; *p && *p != '.'; mb_ptr_adv(p))
+ for (p = name; *p && *p != '.'; MB_PTR_ADV(p))
if (*p == '\\')
STRMOVE(p, p + 1);
}