vim-patch:8.1.0779: argument for message functions is inconsistent

Problem:    Argument for message functions is inconsistent.
Solution:   Make first argument to msg() "char *".
32526b3c18
This commit is contained in:
James McCoy
2021-10-23 16:04:37 -04:00
parent efa924f66b
commit e6ff154be6
39 changed files with 485 additions and 508 deletions

View File

@@ -830,7 +830,7 @@ static int show_menus(char_u *const path_name, int modes)
// Now we have found the matching menu, and we list the mappings
// Highlight title
MSG_PUTS_TITLE(_("\n--- Menus ---"));
msg_puts_title(_("\n--- Menus ---"));
show_menus_recursive(menu->parent, modes, 0);
return OK;
@@ -852,11 +852,11 @@ static void show_menus_recursive(vimmenu_T *menu, int modes, int depth)
return;
}
for (i = 0; i < depth; i++) {
MSG_PUTS(" ");
msg_puts(" ");
}
if (menu->priority) {
msg_outnum(menu->priority);
MSG_PUTS(" ");
msg_puts(" ");
}
// Same highlighting as for directories!?
msg_outtrans_attr(menu->name, HL_ATTR(HLF_D));
@@ -870,7 +870,7 @@ static void show_menus_recursive(vimmenu_T *menu, int modes, int depth)
return;
}
for (i = 0; i < depth + 2; i++) {
MSG_PUTS(" ");
msg_puts(" ");
}
msg_putchar(menu_mode_chars[bit]);
if (menu->noremap[bit] == REMAP_NONE) {
@@ -890,7 +890,7 @@ static void show_menus_recursive(vimmenu_T *menu, int modes, int depth)
} else {
msg_putchar(' ');
}
MSG_PUTS(" ");
msg_puts(" ");
if (*menu->strings[bit] == NUL) {
msg_puts_attr("<Nop>", HL_ATTR(HLF_8));
} else {