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:
ii14
2023-04-05 21:13:53 +02:00
committed by GitHub
parent 2612930a09
commit 371823d407
37 changed files with 376 additions and 372 deletions

View File

@@ -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.