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

@@ -691,7 +691,7 @@ void do_autocmd(char_u *arg_in, int forceit)
// Print header when showing autocommands.
if (!forceit && *cmd == NUL) {
// Highlight title
MSG_PUTS_TITLE(_("\n--- Autocommands ---"));
msg_puts_title(_("\n--- Autocommands ---"));
}
// Loop over the events.
@@ -996,7 +996,7 @@ int do_doautocmd(char_u *arg, bool do_msg, bool *did_something)
}
if (nothing_done && do_msg) {
MSG(_("No matching autocommands"));
msg(_("No matching autocommands"));
}
if (did_something != NULL) {
*did_something = !nothing_done;