mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 12:38:33 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user