mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26: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:
@@ -58,7 +58,7 @@ static bool did_syntax_onoff = false;
|
||||
#define SPO_LC_OFF 6 // leading context offset
|
||||
#define SPO_COUNT 7
|
||||
|
||||
static char e_illegal_arg[] = N_("E390: Illegal argument: %s");
|
||||
static const char e_illegal_arg[] = N_("E390: Illegal argument: %s");
|
||||
|
||||
// The patterns that are being searched for are stored in a syn_pattern.
|
||||
// A match item consists of one pattern.
|
||||
|
Reference in New Issue
Block a user