mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
refactor: make error message definitions const
message.c functions now take const char * as a format. Error message definitions can be made const.
This commit is contained in:
@@ -50,8 +50,8 @@
|
||||
/// The character for each menu mode
|
||||
static char *menu_mode_chars[] = { "n", "v", "s", "o", "i", "c", "tl", "t" };
|
||||
|
||||
static char e_notsubmenu[] = N_("E327: Part of menu-item path is not sub-menu");
|
||||
static char e_nomenu[] = N_("E329: No menu \"%s\"");
|
||||
static const char e_notsubmenu[] = N_("E327: Part of menu-item path is not sub-menu");
|
||||
static const char e_nomenu[] = N_("E329: No menu \"%s\"");
|
||||
|
||||
// Return true if "name" is a window toolbar menu name.
|
||||
static bool menu_is_winbar(const char *const name)
|
||||
|
Reference in New Issue
Block a user