mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +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:
@@ -117,7 +117,7 @@ static inline void normal_state_init(NormalState *s)
|
||||
// n_*(): functions called to handle Normal mode commands.
|
||||
// v_*(): functions called to handle Visual mode commands.
|
||||
|
||||
static char *e_noident = N_("E349: No identifier under cursor");
|
||||
static const char *e_noident = N_("E349: No identifier under cursor");
|
||||
|
||||
/// Function to be called for a Normal or Visual mode command.
|
||||
/// The argument is a cmdarg_T.
|
||||
|
Reference in New Issue
Block a user