aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/locale.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/locale.c')
-rw-r--r--src/nvim/locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/locale.c b/src/nvim/locale.c
index c472d9ba66..f2db9fcc59 100644
--- a/src/nvim/locale.c
+++ b/src/nvim/locale.c
@@ -42,7 +42,7 @@ static char *get_locale_val(int what)
/// @return true when "lang" starts with a valid language name.
/// Rejects NULL, empty string, "C", "C.UTF-8" and others.
-static bool is_valid_mess_lang(char *lang)
+static bool is_valid_mess_lang(const char *lang)
{
return lang != NULL && ASCII_ISALPHA(lang[0]) && ASCII_ISALPHA(lang[1]);
}