mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +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:
@@ -2753,7 +2753,7 @@ void text_locked_msg(void)
|
||||
emsg(_(get_text_locked_msg()));
|
||||
}
|
||||
|
||||
char *get_text_locked_msg(void)
|
||||
const char *get_text_locked_msg(void)
|
||||
{
|
||||
if (cmdwin_type != 0) {
|
||||
return e_cmdwin;
|
||||
@@ -4274,7 +4274,7 @@ void cmdline_init(void)
|
||||
|
||||
/// Check value of 'cedit' and set cedit_key.
|
||||
/// Returns NULL if value is OK, error message otherwise.
|
||||
char *check_cedit(void)
|
||||
const char *check_cedit(void)
|
||||
{
|
||||
if (*p_cedit == NUL) {
|
||||
cedit_key = -1;
|
||||
|
Reference in New Issue
Block a user